Skip to content

Instantly share code, notes, and snippets.

View germs12's full-sized avatar
:shipit:

James Thullbery germs12

:shipit:
View GitHub Profile
@germs12
germs12 / gist:c469d18597e83f2ccac5
Last active August 29, 2015 14:12
Meeting ToDo

Dallas Meeting Todos

James

  • Overview of client site
  • Overview of the admin site
  • Overview of setting up a banner
  • Mock website for 300x250 wrapper
  • Mock website for 300x600 transparent
  • Mock website for 160x600 native
@germs12
germs12 / gist:a37bd6a011befe90f644
Created December 16, 2014 21:16
Google Migration Switch Flip
1) Turn off Apache on prod1-app1, prod1-app2, prod1-app3
2) Turn off replication on slave
3) Test login works
4) Test adding file works on client site
4.5) Update DNS
5) Setup redirects on prod1-app1 prod1-app2, prod1-app3
6) Turn on apache on prod1-app1 prod1-app2, prod1-app3
1 - Create Artists Table
2 - Add new Track(hotttness, echonest_id, etc...) columns to Tracks Table
3 - Create GenreRelations Table
4 - Create Genres Table
5 - Add ActiveRecord to ruby script
6 - Define AR Models for all existing tables
7 - Define relationships between all tables
8 - Test that that works :)
9 - Loop over all distinct Artists pulled from the Tracks table to get a superset of Artist to query to EchoNest
10 - For each artist perform the following:
+ Shortcuts for jump to definition have changed:
For Mac OS X:
* Jump to definition = ``Control+Click``
* Jump to definition = ``Control+Command+Alt+Up``
* Go back = ``Control+Command+Alt+Left``
* Manual CodeIntel = ``Control+Shift+space``
@germs12
germs12 / mongodb
Created October 18, 2014 21:59
post mongodb install instructions
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod --config /usr/local/etc/mongod.conf
@germs12
germs12 / gist:6e5db7c00d1a93292406
Created October 14, 2014 14:16
gio failing tests
cucumber features/client/client_site_edit_ad_tag_campaign_with_ad_tag.feature:3 # Scenario: Client Site Create Reward Extension
cucumber features/client/client_site_edit_ad_tag_campaign_with_creative.feature:3 # Scenario: Client Site Create Reward Extension
cucumber features/client/client_site_new_ad_tag_campaign_with_ad_tag.feature:3 # Scenario: Client Site Create Reward Extension
cucumber features/client/client_site_new_ad_tag_campaign_with_creative.feature:3 # Scenario: Client Site Create Reward Extension
cucumber features/client/client_site_publisher_campaign_status.feature:3 # Scenario: Check Client Site Rewards Campaign Status
https://golang.org/doc/effective_go.html <--- Good read
http://tour.golang.org/ <--- GREAT Tutorials
https://gobyexample.com/ <--- Real World Examples That Makes Sense
http://golang.org/doc/code.html <--- I read the beginning of this
go get <github url>
@germs12
germs12 / gist:82d22f333dde4a19c4f3
Created September 23, 2014 22:40
git checkout archive
git archive master | tar -x -C ~/Desktop/dropbox/
@germs12
germs12 / mesure_time.rb
Created September 13, 2014 17:11
Measure String Printing
require 'benchmark'
tmp = {}
tmp['100,000,000'] = Benchmark.measure {
100000000.times do |x|
puts 'phineas and ferb! ' + x.to_s
end
@germs12
germs12 / sftp.text
Created February 24, 2014 22:52
SFTP Help
# http://askubuntu.com/questions/134425/how-can-i-chroot-sftp-only-ssh-users-into-their-homes