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/ls * | awk '{ printf("mv "$0" ")} {gsub(/_/,"."); print $0 }' | bash |
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
wget www.whatever.com/folder/{1..30}.html |
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
curl -sSL -o /dev/null -D - http://domain.com | |
-S, --show-error Show an error message if it fails | |
-L/--location If the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response | |
code), this option will make curl redo the request on the new place. | |
-o, --output FILE Write output to <file> instead of stdout | |
-D, --dump-header FILE Write the headers to this file | |
curl -v -o - -D - http://domain.com |
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/bash | |
while read LINE; do | |
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE" | |
echo " $LINE" | |
done < url-list.txt |
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
vlc -vvv http://livestreams.omroep.nl/npo/3fm_vsr-bb --sout "#standard{access=http,mux=asf,dst=192.168.3.31:8080}" |
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
lame -V2 --vbr-new -q0 --lowpass 19.7 <infile> <outfile> |
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
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" | |
) |
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
ffmpeg -i <infile> -ac 2 -f wav <outfile> |
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
# 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`' |
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/bash | |
#FS=' | |
#' | |
##strip special character: ' | |
character="'" | |
replace="_" | |
j=`find $1 -printf "%d\n" | sort -u | tail -n 1` | |
j=$((j-1)) |
OlderNewer