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 | |
curl https://www.amazon.com --silent --write-out "%{size_download}\n" --output /dev/null | |
curl https://www.amazon.com --silent --write-out "%{size_download}\n" --output /dev/null -H "Accept-Encoding: gzip,deflate" |
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
# pipe file search to rm | |
find . -name '*.txt' | xargs rm | |
find . -name '*.txt' -exec rm {} \; | |
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
grep --color='auto' -P -n "[\x80-\xFF]" file.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
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
sudo python get-pip.py | |
sudo pip install -U boto |
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
# shows basic commit info (date, revision, comment) | |
svn log | sed -n '/username/,/-----$/ p' | |
# shows modified files in addition to basic info | |
svn log --verbose | sed -n '/username/,/-----$/ p' |
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 | |
EXPECTED_ARGS=1 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage: `basename $0` {filename}" | |
exit 1 | |
fi |
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
svn log | egrep 'r[0-9]+ \| username \|' |
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
# create a local repository and add necessary hooks | |
svnadmin create /tmp/localsvn | |
echo '#!/bin/sh' > /tmp/localsvn/hooks/pre-revprop-change | |
chmod +x /tmp/localsvn/hooks/pre-revprop-change | |
# sync between the new repo and the existing repo | |
svnsync init file:///tmp/localsvn https://www.existingsubversion.com/svn/ | |
svnsync sync file:///tmp/localsvn | |
# export from the local repo |