diff --git a/Arch/.bashrc b/Arch/.bashrc index 2528284..88e789e 100644 --- a/Arch/.bashrc +++ b/Arch/.bashrc @@ -113,6 +113,9 @@ mksketch(){ elif [ "$2" = "web" ] then cp "$HOME/skeletons/webserv.ino" "$1/$1.ino" + elif [ "$2" = "mqtt" ] + then + cp "$HOME/skeletons/mqttSkel.ino" "$1/$1.ino" else cp "$HOME/skeletons/basic.ino" "$1/$1.ino" fi @@ -206,3 +209,13 @@ jsonform(){ chromium "https://jsonformatter.curiousconcept.com/#$1" 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 +}