Uncategorized

Asterisk: Fail2ban & IP Tables

Posted on

https://www.voip-info.org/fail2ban-with-iptables-and-asterisk/   /etc/init.d/fail2ban restart /etc/init.d/fail2ban reload /etc/init.d/iptables-persistent restart When you reload or restart fail2ban all the bans are removed.    One problem with this wonderful solution (which is related to iptables, not fail2ban), is that when you reboot your server all the rules and blocked IPs are deleted. On my case I want all this […]

Uncategorized

Prestashop: Remove Manufacturer List Scroll

Posted on

theme folder -> manufacturer-list.tpl To remove top scrool, around line 70, delete the following: <div class="top-pagination-content clearfix bottom-line"> {include file="$tpl_dir./pagination.tpl" no_follow=1} </div>   For the bottom one,    Delete around line 153   <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="$tpl_dir./pagination.tpl" no_follow=1 paginationId='bottom'} </div> </div>     To disable Sortibar Delete around line 51:   <div […]

Uncategorized

Talend Studio: Allocate Memory

Posted on

https://community.talend.com/t5/Migration-Configuration-and/Allocating-more-memory-to-Talend-Studio/ta-p/21642   Locate the .ini file inside the Talend installation folder.  With 8 GB of memory available on 64-bit system, the optimal settings can be: -vmargs -Xms1024m -Xmx4096m -XX:MaxPermSize=512m -Dfile.encoding=UTF-8 After this, you need to configure this same variables on the Advanced Settings of the Run Tab.

Uncategorized

Excel: Create Random 40 character string

Posted on

=CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))&RANDBETWEEN(10,99)&RANDBETWEEN(10,99)&CHAR(RANDBETWEEN(65,90))&CHAR(RANDBETWEEN(65,90))

Uncategorized

Java Version

Posted on

I have java 6 installed, and decided to install java 7. But even after I installed java 7 the system recognized java 6.  To select java 7 as default: sudo update-alternatives --config java

Prestashop

Prestashop: Remove undefined from Product List

Posted on

When you switch the view from Manufacturer's Product List you get an undefined Character.  To remove this go to  /var/www/html/XXXXXXX/themes/default-bootstrap/js/global.js: Comment the following lines: Line 284: html += '<h5 itemprop="name">'+ $(element).find('h5').html() + '</h5>';   Line 324: html += '<h5 itemprop="name">'+ $(element).find('h5').html() + '</h5>';

Uncategorized

IPTables

Posted on

To have the tables load after reboot sudo apt-get install iptables-persistent Then after you edit the iptables, if you want to update the initial file you should sudo /etc/init.d/iptables-persistent save   To enable the log, you need to: iptables -N LOGGING iptables -A INPUT -j LOGGING iptables -A LOGGING -m limit --limit 10/min -j LOG […]

Uncategorized

Excel: VBA Script to Clean Text

Posted on

Function StripAccent(thestring As String) Dim A As String * 1 Dim B As String * 1 Dim i As Integer Const AccChars= "ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ" Const RegChars= "SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy" For i = 1 To Len(AccChars) A = Mid(AccChars, i, 1) B = Mid(RegChars, i, 1) thestring = Replace(thestring, A, B) Next StripAccent = thestring End Function

Uncategorized

WordPress: Text being changed

Posted on

Quotations and dashed are different from the original text to the display. This is problematic is you're using code, because it will change it.  This is called wptexturize.  To solve this add the following code on the functions.php file inside the template folder. add_filter( 'run_wptexturize', '__return_false' );

Uncategorized

FreeSwitch & Flowroute to Receive and Send SMS

Posted on

See tutorial   Support For Flowroute SMS in FreeSWITCH   Got stuck, on apt-get install -y --force-yes freeswitch-video-deps-most with the following error: root@Asterisk:/home# apt-get install -y --force-yes freeswitch-video-deps-most Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation […]

Uncategorized

Email Marketing Spam Audit

Posted on

I want to maximize my marketing emails to get delivered, so I'll use three audit tools to try to get an idea of whats happening.   http://spamcheck.postmarkapp.com/ https://www.mail-tester.com/ https://mxtoolbox.com/deliverability   See important results from each below: http://spamcheck.postmarkapp.com/ 2.3 EMPTY_MESSAGE Message appears to have no textual parts and no Subject: text 1.0 MIME_NO_TEXT No (properly identified) […]