Best practices switching environments in software projects

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

The most useful git commands

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

Creating a conditional 'Read More' link as a field in Views

If you use Views for listing content in Drupal, and you trim the body to just display a summary of the text, you may want to create a Read more link to the full node. Even if you already link the title to the content, additionally displaying a Read more link can suggest that more content is available (in some cases, this may not be obvious).

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).