Do things better, faster, stronger

This commit is contained in:
Brad 2019-04-25 18:07:37 -05:00
parent f422dcd8c7
commit dc30aa2f54

View File

@ -113,6 +113,9 @@ mksketch(){
elif [ "$2" = "web" ] elif [ "$2" = "web" ]
then then
cp "$HOME/skeletons/webserv.ino" "$1/$1.ino" cp "$HOME/skeletons/webserv.ino" "$1/$1.ino"
elif [ "$2" = "mqtt" ]
then
cp "$HOME/skeletons/mqttSkel.ino" "$1/$1.ino"
else else
cp "$HOME/skeletons/basic.ino" "$1/$1.ino" cp "$HOME/skeletons/basic.ino" "$1/$1.ino"
fi fi
@ -206,3 +209,13 @@ jsonform(){
chromium "https://jsonformatter.curiousconcept.com/#$1" chromium "https://jsonformatter.curiousconcept.com/#$1"
fi fi
} }
haste(){
if [ -z $1 ]
then
echo "Please enter some fucking data"
else
key=$(curl 'https://hastebin.com/documents' --data-binary "$1" | jq -r '.key')
chromium http://hastebin.com/$key
fi
}