Articles & Snippets

Search for content...
/

Start typing to search

How to count all the files recursively?

Posted by Cătălin on Mon, 23 Jun 2014

How to count all the files recursively?

How to count all the files recursively through directories in Linux: find -maxdepth 1 -type d | while read -r dir; do printf "%s:\t" "$dir"; find "$dir" -type f | wc -l; done

Read More...
code

Installing SSL Certificate on Apache with mod_ssl

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

Installing SSL Certificate on Apache with mod_ssl

Generate your certificate.csr and private.key with on Apache with mod_ssl cd /etc/ssl/domain.tld openssl genrsa -des3 -out private.key 4096 openssl req -new -key private.key -out certificate.csr ...

Read More...
code

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