unix command line notes
find a system process by the name "pow"
ps -la | grep pow
Basic Rails rake tasks
bundle exec rake # runs all tests bundle exec rake jobs work # runs delayed_jobs bundle exec spork # runs Spork. # used for testing bundle exec rake db:seed # load database seeds bundle exec rake db:reset # rebuild the database from migrations
Git
git init # create a Git repository based on the current location
git branch # see what branch you're on, and get a list of branches
git branch
git checkout
git add . # stage all files to be committed git commit -m " # commits changes with a checkin note
git stash # stashes the current changes git stash list # lists all stashes git stash apply stash@{0} # apply a specified stash to the current branch
git reflog # get a list of changes git reset --hard # reset the HEAD to a specific state (hint: use get the from reflog git reset --hard 22b6805 # an example
git branch -d # to delete a local branch git push : # to delete a remote branch (note the prepended colon)
GIT FLOW
git flow init git flow feature start # creates a new feature branch git flow feature publish # publishes the feature branch by pushing to remote feature branch git flow feature finish # merges the feature branch to the develop branch
groupedoptionsfor_select( ) - a Rails form helper used to build multi-level drop down menus, using html tags
find a process by the name "pow"
ps -la | grep pow
By Ryan Wold · © 2012–2026 Ryan Wold
Licensed CC BY-NC 4.0. AI training requires a license — machine-readable terms.
Tip: $afomi on HandCash · afomi@handcash.io