ryanwold.net

A civic-minded citizen seeking the singularity

Back to Entries

unix command line notes

idea
Date: 2012-02-20
Tags: commands programming unix

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 # create a branch called git checkout # switch to the specified

git checkout # abandon the changes and revert to the latest commit # basically, the is an "undo"

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.

Enjoyed this? — any BSV wallet, HandCash, or plain old dollars.

Leave a tip

Tips go directly to a Bitcoin SV address I control — peer to peer, no platform in between. A few thousand satoshis is a fraction of a cent; it's the gesture that counts.

From any BSV wallet

Scan the QR code with your wallet's camera, or copy the address.

177DwUfSTW8RkFBJzYYcgr1YB8ngbhTYAc

With HandCash or any paymail wallet

Paymail is an email-style address for Bitcoin wallets. Send any amount to afomi@handcash.io

First time using Bitcoin? Yours Wallet is an open-source browser extension wallet, and HandCash is an easy mobile wallet — either takes a minute to set up.

Prefer regular money? Support via OpenCollective.