Skip to content

Instantly share code, notes, and snippets.

@poweld
poweld / party.sh
Last active November 6, 2018 18:50
Annoy your coworkers with massive emoji banners in Slack
function party {
if ! command -v figlet; then
if ! command -v brew; then
echo Requires figlet or brew to be installed
return 1
fi
brew install figlet
fi
if [ -z "$1" ]; then
@poweld
poweld / holeySSH.sh
Last active October 1, 2015 14:42
How to make SSH holes
function deploy_pubkey() {
return $( cat ~/.ssh/id_rsa.pub | `which ssh` "$@" 'cat - >> ~/.ssh/authorized_keys' )
}
function ssh()
{
args="$@"
ssh=`which ssh`
$ssh -oBatchMode=yes $args : 2>&1 >/dev/null
if [ $? -eq 0 ]; then
@poweld
poweld / gist:d581538084c6372fac5f
Created April 23, 2015 15:16
Go to a directory within the current path
function cd..() {
if [ -z $1 ]; then
cd ..
else
grep "\/" <<<$1 &>/dev/null