Skip to content

Instantly share code, notes, and snippets.

Avatar
😕
Huh?

Karim Said egyptiankarim

😕
Huh?
View GitHub Profile
View gist:d4f369b3ad10c65681bd
### 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:
@egyptiankarim
egyptiankarim / trash.sh
Last active Aug 29, 2015
Shortcut for moving files to the trash.
View trash.sh
#!/bin/sh
while [ $# -gt 0 ]
do
mv "$1" ~/.Trash
shift
done
@egyptiankarim
egyptiankarim / furl.sh
Last active Oct 16, 2015
Shortcut for encoding/decoding URLs.
View furl.sh
#!/bin/sh
#
# Shortcut for encoding/decoding URLs.
usage () {
echo "Usage: $ furl [(d|e)] [URL]\n"
exit 1
}
if [ "$#" -ne 2 ]; then
@egyptiankarim
egyptiankarim / bang.sh
Last active Oct 16, 2015
Shortcut for sending HTTP(S) requests from files.
View bang.sh
#!/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"
You can’t perform that action at this time.