FISH Shell - How to set tmux window/pane title based on current command and directory

Here's a neat trick: Setting the current tmux window/pane title to the current running command. In case there is no command running, show the current working directory. But trim it a little, so we don't end up with huge window titles :)

In your...

Apple Magic Mouse lag problem solved

After looking everywhere for a solution for my Apple Magic Mouse lag problem it finally dawned on me:

Both Bluetooth and Wifi(n) share a very close spectrum of the wireless channels. After changing my router's Wifi channel from 12 to 1 the mouse...

Some people are retards, but traffic signs don't help

Disclaimer: This post is mostly about Portuguese roads. Adapt to your own country as needed :)

Some people are retards. Period. No matter what, they will drive on the wrong lane, "forget" to indicate a direction/lane change, or just plainly drive...

Ruby bundle dependency tree

On OSX:

brew install graphviz && gem install ruby-graphviz && bundle vi

On Linux:

apt-get install graphviz && gem install ruby-graphviz && bundle viz

On Windows:

Good luck! ;)

This will generate a png image...