This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while [ $# -gt 0 ] | |
do | |
mv "$1" ~/.Trash | |
shift | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am egyptiankarim on github. | |
* I am egyptiankarim (https://keybase.io/egyptiankarim) on keybase. | |
* I have a public key whose fingerprint is 5FE9 D3BA 2529 3CE2 D6BF 578E D360 6370 6856 0688 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Shortcut for encoding/decoding URLs. | |
usage () { | |
echo "Usage: $ furl [(d|e)] [URL]\n" | |
exit 1 | |
} | |
if [ "$#" -ne 2 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Shortcut for sending HTTP(S) requests from files. | |
# | |
# USAGE: | |
# | |
# $ bang [target] [request file] [response file (optional)] | |
usage () { | |
echo "Usage: $ bang [target] [request file] [response file (optional)]\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convenient tiny web server for local dev and test. | |
ruby -run -e httpd . -b 127.0.0.1 -p 3000 |