Skip to content

Instantly share code, notes, and snippets.

View rymawby's full-sized avatar

Ry Mawby rymawby

View GitHub Profile
@rymawby
rymawby / remove_bullets.css
Last active December 17, 2015 12:49
Remove bullets from li css
ul
{
list-style-type: none;
}
@rymawby
rymawby / reindex_sunspot.sh
Last active December 17, 2015 15:59
Reindex Sunspot/Solr on Rails 3.
bundle exec rake sunspot:solr:reindex
@rymawby
rymawby / deploying-a-rails-app-to-heroku.rb
Created June 10, 2013 15:13
Deploying a rails app to Heroku - the little things I need to remind myself.
# Update rake file to use thin and pg when in production
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'thin'
gem 'pg'
end
@rymawby
rymawby / start-faye-server.sh
Created June 10, 2013 19:33
Start faye server
rackup faye.ru -s thin -E production
@rymawby
rymawby / double-exclamation-point.rb
Created June 10, 2013 19:55
Double exclamation point (2 exclamation marks)
# A double bang converts to boolean
!!
@rymawby
rymawby / git-rebasing-basics.sh
Created June 11, 2013 13:39
Git rebasing basics
# Pull often and rebase often
# branch
git checkout -b branch_name
# finished working on small piece of work
git add .
git commit -m 'Commit message'
git push origin branch_name
@rymawby
rymawby / .bash_profile
Created June 14, 2013 10:46
My .bash_profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH=/usr/local/bin:${PATH}:/Users/rymawby/scripts:/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/flex_sdk_4.1.0.16076\ and\ AIRSDK_2.5/bin:/Users/rymawby/scripts/get-shit-done:/usr/local/share/npm/bin
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages:$PYTHONPATH
export RUBYLIB=/Users/rymawby/.rvm/gems/ruby-1.9.2-p290@wespend/bin:/Users/rymawby/.rvm/gems/ruby-1.9.2-p290@global/bin:$RUBYLIB
export JAVA_HOME=`/usr/libexec/java_home -v 1.6 -d32`
export FLEX_HOME=/Applications/Adobe\ Flash\ Builder\ 4.6/sdks/flex_sdk_4.1.0.16076\ and\ AIRSDK_2.5/
alias log="~/scripts/log-to-day-one.rb"
alias logj="~/scripts/log-jira-to-day-one.rb"
alias sub='open -a "/Applications/Sublime Text 2.app"'
@rymawby
rymawby / undo-git-rebase.sh
Created June 14, 2013 18:37
Undoing a git rebase
# find head commit
git reflog
# now reset hard - where N is the head commit found in the reflog
git reset --hard HEAD@{N}
@rymawby
rymawby / top-ordered-by-cpu.sh
Created June 21, 2013 09:25
Top ordered by CPU usage.
top -o cpu
@rymawby
rymawby / remove-font-transcoding-errors
Created June 21, 2013 11:18
To remove font transcoding errors.
-managers flash.fonts.AFEFontManager