How to get the IP address from the command line

Using OpenDNS:

dig @resolver1.opendns.com myip.opendns.com +short 'hostname' | head -1

Best practices switching environments in software projects

One of the most important things to consider when working on different environments (Development, Staging, Production, etc.) in the same project, is to not confuse them.

The most useful git commands

Here there are some examples of git commands that I use often.

Connecting to UPF's VPN on Linux, using vpnc

I remember that I used this some time ago, and that the official documentation on the UPF website was (and maybe still is) obsolete.

Automatically rebooting the DSL router when the Internet connection is lost

I had this script running some time ago in my wifi router (which was running TomatoUSB, a Linux-based firmware available for some Broadcom-based ethernet routers).

Pages