Control your Raspberry Pi with your TV remote

  This little script will allow you to control your Raspberry Pi using the buttons in your regular TV remote. Usage You can press the following buttons on the remote. OK       – launch kodi up       – launch browser down  – change wallpaper (this is a custom script of mine) left      – suspend your desktop computer …

php, wordpress

Custom random avatars in WordPress

  When someone places a comment in WordPress, the blog tries to identify them by email. The email address is not shown on the comments, but if they happen to have a Gravatar account, their profile picture from that service will be used. If a Gravatar is not found for that email, then a default …

shell, zsh

List files without stopping to type in zsh

This zsh widget allows you to list files in the current directory without interrupting the command you are typing. Usage Hit <tab>  in the middle of any command. It will list all files below the command line. Hit  <space><tab>  on an empty command line. It will list directories. Hit  <space><space><tab>  on an empty command line. It will …


Colorize your stdout with xcol

This little tool will colorize its standard input with a different color for each one of its arguments. Usage xcol imitates the usage of grep, so you can pipe any stdout to it

, or read from a file

Just like grep . You can match any regular expression that sed  would accept


Completely remove a file from a git repository with git forget-blob


Installation Get the script from github and make it executable. To do it in one step, paste the following on your terminal

If you don’t like installing to /usr/local/bin  using sudo ,  just copy git-forget-blob  wherever you like. It will work as long as the file is in the $PATH with execute …

shell, tmux

Smart tmux sessions

Usage Instead of tmux just type

Installation Get the code from github, and append it to your .zshrc or .bashrc. To do it in one step, paste in zsh

, or in bash

New shell sessions will automatically start or resume a tmux session. Comment last line of .zshrc or .bashrc after …