I hereby claim:
- I am Bonno on github.
- I am bonno (https://keybase.io/bonno) on keybase.
- I have a public key whose fingerprint is 18D4 7BEA 569A E077 8C67 CC1C 7832 7EFB DF6C 99DF
To claim this, I am signing this object:
/bin/ls * | awk '{ printf("mv "$0" ")} {gsub(/_/,"."); print $0 }' | bash |
wget www.whatever.com/folder/{1..30}.html |
#!/bin/bash | |
while read LINE; do | |
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE" | |
echo " $LINE" | |
done < url-list.txt |
lame -V2 --vbr-new -q0 --lowpass 19.7 <infile> <outfile> |
for /f "delims=" %%a IN ('dir /b *.m4a') do ( | |
ffmpeg -i "%%a" "%%~na.wav" | |
lame -V2 --vbr-new -q0 --lowpass 19.7 "%%~na.wav" "%%~na.mp3" | |
del "%%~na.wav" | |
) |
# Flush magento cache/fullpagecache | |
alias flush='setopt rmstarsilent && rm -rf var/cache/* && rm -rf var/full_page_cache/* && unsetopt rmstarsilent' | |
# Return the current branch name | |
alias repo='git rev-parse --abbrev-ref HEAD' | |
alias gpo='git push origin' | |
alias gb='git br' | |
# Set the upstream for the current branch | |
alias gbu='git branch --set-upstream `repo` origin/`repo`' |
#!/bin/bash | |
#FS=' | |
#' | |
##strip special character: ' | |
character="'" | |
replace="_" | |
j=`find $1 -printf "%d\n" | sort -u | tail -n 1` | |
j=$((j-1)) |
if [ -n "$1" ] | |
then | |
if [ -d "$1" ] | |
then | |
cd "$1" | |
else | |
echo invalid directory | |
exit | |
fi | |
fi |
<?php | |
/* | |
* PHP delete function that deals with directories recursively | |
* Snippet from http://www.paulund.co.uk/php-delete-directory-and-files-in-directory | |
* | |
* @author Paulund http://www.paulund.co.uk/ | |
* @author Lewis Cowles | |
*/ | |
function delete_files($target) { | |
if(is_dir($target)){ |
I hereby claim:
To claim this, I am signing this object: