Debugging shell scripts comes handy, especially when unexpected things happen. Trust me, they do. I use two different approaches, based on what’s needed: debug while running it or when ran in the background, maybe by […]
If you are having below error in duplicity probably your token has expired and you need to generate a new one. To generate a new one simply run duplicity and follow the steps, you are […]
vi and vim are two out of many text editors on Unix, this is my .vimrc. I put this here mostly so I can easily grab it.
My idea about not to rotate empty log files on FreeBSD has made it to newsyslog, yay 😀 ! Big thanks for Dan Langille who made this happen!
A tiny bit of cfengine
Recently I found a forum entry with a script for blocking ad’s via DNS for WRT (or any other OS using sh and dnsmasq). However it was missing two features: a white list and a […]
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 […]
On FreeBSD the best way to rotate logs is using newsyslog. After you set up you want to try what would happen when log rotation occurs, this can be done with -n and -vv -n […]
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, […]
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 […]