Easy SSH On macOS

Using public key authentication for ssh is safer than password. But you should really use a passphrase protected private key. Now you are safe but you still need to type in your passphrase. This isn’t […]

Easy bond Interface

If you ever set up a bond interface on Linux you know it takes a few file editing. I got tired of doing this, please find my script below creating a bond interface. This is […]

Delete a Single Line From History

Did you ever wanted to remove a single line from your shell history? This is how you can easily do it: use: history -d line number to remove the line, for example history -d 431, […]

net-snmp Logrotate On CentOS

It turns out be defult net-snmp doesn’t come with logrotate for CentOS 7. However is quite simple to be done. All you have to do create a the following file: /etc/logrotate.d/snmpdlog and add the content […]

A Magic Trick From ZFS

This is a short description about how to recover a single or multiple files from a ZFS snapshot on FreeBSD. The same trick might work on Linux, I haven’t tried, if you did please let […]

% and crontab

Crontab is a wonderful tool to run tasks at scheduled times. I noticed that my cron jobs fail if I use the percentage sign (%) in it. Why? It works if I just execute the […]

Removing broken packages on Debian

Recently I had this issue with a Debian server. apt-get autoremove broke some packages and I was not able to remove them either with apt-get remove, dpkg -P or dpkg –remove –force-remove-reinstreq What I did […]