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.
This is just a simple sed to capture IP address from ping. Note host must allow ICMP. This was tested on sh, bash and zsh. An example:
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!
On FreeBSD /var/cache/pkg can use up a significant amount of space. The good news is the content of this directory is not required. However it is useful if you want to rollback to an older […]
A tiny bit of cfengine
I’m sure your server is running at least one service which needs network. Once in awhile happens that the server will start all, or at least is trying to start all services but the network […]
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 […]
By default many zfs operations needs elevated/root privileges. For example receiving a snapshot on a remote system. One does not want to open ssh to root user. With zfs allow permissions can be delegated to […]