From dc30aa2f54afb35944adedbd544babf4c5b8a1c3 Mon Sep 17 00:00:00 2001 From: Brad Date: Thu, 25 Apr 2019 18:07:37 -0500 Subject: [PATCH] Do things better, faster, stronger --- Arch/.bashrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 +}