Articles & Snippets

Search for content...
/

Start typing to search

Renew SSL certificate at StartSSL

Posted by Cătălin on Sun, 2 Feb 2014

Renew SSL certificate at StartSSL

In case you are approved for a certificate renewal here is how you do it: The web server SSL certificates from startssl is free for class 1 and needs to be renewed every year. Two weeks before...

Read More...
code

How to burn ISO image on Mac?

Posted by Cătălin on Wed, 22 Jan 2014

How to burn ISO image on Mac?

To burn ISO image on Mac is very easy. Open your Terminal and type: hdiutil burn /Users/path/xxx.iso Instead of typing the path you can also drag and drop the ISO file into terminal and press enter...

Read More...
code

Unblock IP from Fail2Ban

Posted by Cătălin on Fri, 17 Jan 2014

Unblock IP from Fail2Ban

Search for IP 192.168.1.1 to see its been blocked by firewall iptables -L -n | grep 192.168.1.1 DROP all -- 192.168.1.1 0.0.0.0/0 Remove 192.168.1.1 iptables -D fail2ban-sasl...

Read More...
code

Remove specific directories at once in Linux

Posted by Cătălin on Tue, 10 Dec 2013

Remove specific directories at once in Linux

find specific folder, ex: "_notes" find /home/www -name "_notes" delete all folders "_names" find /home/www/ -name '_notes' -print0 | xargs -0 rm -rf

Read More...
code

Backup MySQL with cron

Posted by Cătălin on Tue, 10 Dec 2013

Backup MySQL with cron

#!/bin/sh # List of databases to be backed up separated by space dblist="database1 database2 mysql information_schema" # Directory for backups backupdir=/Users/username/Documents/backups/mysql/gz ...

Read More...
code

Vacation plugin issue with Roundcube 0.95

Posted by Cătălin on Wed, 23 Oct 2013

Vacation plugin issue with Roundcube 0.95

Vacation plugin not compatible with Roundcube 0.95, due to changes in the way roundcube access database. To fix this, replace: $db = new rcube_mdb2($dsn, '', FALSE); with: if (!class_exists('rcube_db'))...

Read More...
code