Java

Use your vps as a proxy

This is an old trick that I need to note, because I always forget the exact syntax. It creates a SSH tunnel on a server where you have access, and you can use this tunnel to connect to the internet through that server. Knowing that you can rent a cheap VPS in the USA for… Continue reading Use your vps as a proxy

Java

hostname tab completion in your shell

sometimes you work in an environment with hostnames following intricate conventions Thankfully you can enable hostname bash completion: bash add in your ~/.bashrc complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh zsh add in your ~/.zshrc local knownhosts knownhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\… Continue reading hostname tab completion in your shell