Productivity tip – Session Buddy

If you’re like me, you probably have groups of tabs opened in your browser, for instance this is how my taskbar looks like: So i usually split up my tabs into: work, education, reading and so on. The problem is that sometimes when Chrome crashes and i...

Segmentation faulty tree

So i just came across this problem: as i was working with a Raspberry pi, i got the following message: “Segmentation faulty tree” as i was trying to install a few packages on my raspbian jessie. Luckily, it was a quick fix: sudo rm /var/cache/apt/*.bin apt...

Google Cloud Platform – FTP

So if you’re getting an error similar to this: “500 I won’t open a connection to 10.142.0.9 (only to…” if you’re trying to use FTP on a VM on Google Cloud, fear not, it’s an easy fix. You can do this 2 ways: 1 – FTP -p...

MySQL 5.7 – reset root password

So there’s been a change in the way you reset the MySQL root password in MySQL 5.7 as in the “password” field got removed, so the old way of resetting the password doesn’t work anymore: | authentication_string | text | YES | | NULL | | So...

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:...

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...

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...

Git cheat sheet

Some of the stuff that i use more frequently and i still haven’t learned by heart yet, I will be putting them here, in this beautiful cheat sheet. List all tracked files: git ls-tree –full-tree -r –name-only HEAD Untrack file in git: echo...