Small cli tool bwm-ng

A colleague of mine just showed me this tool: bwm-ng a nice little cli tool for measuring bandwidth usage live it's pretty straight forward just start it and tune it while it's running.…

My list of useful commands

Hi I just want to share some useful commands with you that I use often in a linux terminal I will likely update this once in a while, feel free to comment. Last updated: 2017-02-07 list files sorted last modified last $ ls -ltrh I sometimes use this in /var/log…

amazon ip ranges in varnish

I just recently realized that amazon exposes all of their ip ranges in a easy to get json format here (https://ip-ranges.amazonaws.com/ip-ranges.json) you can also read the docs here (http://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html) So I made this python script to…

mtr

I just want to introduce you to nice little network diagnostic tool which combines ping and traceroute it does a traceroute and then repeatedly pings all the nodes along the route. use like this mtr 8.8.8.8…

Bash goodies

CONGRATULATIONS (insert a huge and very irritating blinking banner here) You are customer number $(zgrep /var/log/apache2/access.log*|wc -l) Today I'll share some funny and usefull bash goodies with you. Well actually to tell you the truth I really just want to document this for my future…

Restricting postfix destination domain

Postfix has alot of options and theres probably alot of other ways to do this also, but here's how I did. add this line to /etc/postfix/main.cf transport_maps = hash:/etc/postfix/transport then edit /etc/postfix/transport like this: example.com : * error: only specified destination domains are…