# Command Line Foo alias clf='clf --color' # The Fuck TF_ALIAS=fuck alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R' # PClear pclear () { clear printf '\033[3J' } # Termbin alias tb='nc termbin.com 9999' # Create SSL One Line sslcreate() { if [[ "$1" = "create" ]]; then openssl genrsa -out private/$2.key 2048 openssl req -new -key private/$2.key -out csr/$2.csr -sha256 openssl x509 -req -days 365 -in csr/$2.csr -signkey private/$2.key -out certs/$2.crt fi if [[ "$1" = "clear" ]]; then rm -rf private/$2.key rm -rf csr/$2.csr rm -rf certs/$2.crt fi } if [ $(uname -n) = "sayaka" -o $(uname -n) = "kimari" ]; then # SSH Connect sshconnect() { [ $1 = "web" ] && ssh megumi.eeleater.org [ $1 = "mail" ] && ssh mail.eeleater.org } fi