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
cut -d ',' -f11,9 file.txt | ruby -ne 'puts $_.split(",")[1].chomp + "," + $_.split(",")[0].chomp' | sort | uniq |
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
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> |
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
cd /your/directory | |
/usr/bin/find *.csv -mtime +7 | gzip > /your/directory/backups/files_`date "+%Y-%m-%d"`.gz | |
/usr/bin/find *.csv -mtime +7 -delete |
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
git log v1.0.9.. --pretty='format:' --name-status | grep -e ^[D][[:space:]] | cut -c 3- |
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
git for-each-ref --format='%(taggerdate:iso8601) %(refname:short)' refs/tags | grep -v '^ ' | sort | cut -d ' ' -f4- | tail -2 | head -1 |
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
git for-each-ref --format='%(taggerdate:iso8601) %(refname:short)' refs/tags | grep -v '^ ' | sort | cut -d ' ' -f4- |
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
# this is from a Zach Holman slide | |
require 'digest/md5' | |
md5 = Digest::MD5.new() | |
md5 << File.read('Gemfile') | |
checksum = md5.hexdigest | |
installed = File.read('.bundle/checksum').strip |
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
ruby -e "puts (Time.now + 52*7*24*60*60).strftime('%a, %d %b %Y 23:59:00 GMT')" |
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
ruby -e "4.times{ sleep(7.5*60); 5.times {puts 7.chr; sleep(0.3)}}" |
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
cucumber -d -f stepdefs | grep '/^' |