This file contains hidden or 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
# simple 'dl' command for downloading a file to the current directory | |
dl () { | |
if [ $# -eq 0 ]; then | |
echo -e 'usage: dl \033[4murl\033[0m [\033[4mfile\033[0m]'; | |
elif [ $# -eq 1 ]; then | |
parsed="$(basename $(echo -n "$1" | sed 's/\?.*$//'))"; #strip query string and fragment | |
curl -C - "$1" -o "$parsed"; | |
else | |
curl -C - "$1" -o "$2"; |
This file contains hidden or 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 wevah on github. | |
* I am wevah (https://keybase.io/wevah) on keybase. | |
* I have a public key ASCYaKnIPRFxUJL1JIIKe6wpEkNz4ROhhNzarALeMBOsvQo | |
To claim this, I am signing this object: |
This file contains hidden or 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
#!/usr/bin/env perl | |
# Run from inside an SQLite amalgamation directory | |
# (i.e., extracted from an amalgamation archive). | |
use warnings; | |
use strict; | |
use Cwd; | |
my $macosxminversion = "10.12"; |
This file contains hidden or 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
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "I need a file!" | |
exit 1 | |
fi | |
baseName=$(basename "$1") | |
downloadName="${baseName%.*}" |
OlderNewer