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 remote in `git branch -r | grep -v master `; | |
do git checkout --track $remote ; | |
done; |
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
mysql -u<USERNAME> -p<PASSWORD> <DB_NAME> -e "show tables" | \ | |
grep -v Tables_in|awk '{print "ALTER table",$1" ENGINE=InnoDB;"}' |
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
| results | BASE TABLE | | |
| resultview3 | VIEW | | |
| resultview_sub1 | BASE TABLE | | |
| resultview_sub2 | BASE TABLE | | |
| resultview_sub3 | BASE TABLE | | |
| resultview_sub3a | BASE TABLE | | |
RESULTSVIEW3 is confirmed to be a view | |
mysql> select * from trackertouse; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
task :jsonify_timeline => :environment do | |
require 'csv' | |
require 'json' | |
require 'open-uri' | |
def scrub(text) | |
if text.include? '--' | |
text = text.gsub(/--/, '—') | |
end | |
return text |
NewerOlder