Dynamic robots.txt – block search engines for all robots.

If you have multiple websites on a server or wildcard websites and you don’t want to create 1000 robots.txt files, but you want to disallow search engines access,  you can do the following elegant solution: Create a robots.txt with the content below: User-agent: * Disallow: / Then create your robots.txt file somewhere on your server. […]

Reset wordpress file/folder permissions

If you need a quick and easy fix for broken wordpress permissions – feel free to copy/paste the lines below. These will reset them to defaults. cd /your/wordpress/folder find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x find . -type f -exec chmod 644 {} \; # Change file permissions […]

write:errno=104 / New, (NONE), Cipher is (NONE)

So if you’re having some issues with SSL connections, it’s higly likely you’re experiencing them from client version openssl 1.0.2. the fix is below and i can confirm it works on both openssl 1.0.1 and 1.0.2. openssl s_client -connect yourdomain.com:5671 -showcerts CONNECTED(00000003) write:errno=104 — no peer certificate available — No client certificate CA names sent […]

npm ERR! EPROTO: protocol error, symlink ‘../rimraf/bin.js’

So i was trying to spin up a docker app in a node.js docker container but i got the error below: npm ERR! Linux 4.4.24-boot2docker npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! path ../rimraf/bin.js npm ERR! code EPROTO npm ERR! errno -71 npm ERR! syscall symlink […]

How to install Node.js on Ubuntu/CentOS

If you want to easy install Node.js on Ubuntu or RHEL – based systems such as CentOS, I’m just gonna point you towards Nodesource. It’s the easiest thing to do since sliced bread. However, if you’re into more heavy development and you would like an RVM-like setup, you can try NVM. You will be able […]