- I am much more productive and performant when I program with another person while working through a problem.
- Other people are not usually around or available to program together on an issue.
- Programming along
- Buy a rubber duck
| From http://orgmode.org/orgcard.txt on 2016-09-13 | |
| ================================================================================ | |
| Org-Mode Reference Card (for version 7.8.11) | |
| ================================================================================ | |
| ================================================================================ | |
| Getting Started |
| $ docker-machine ssh dev | |
| Boot2Docker version 1.9.0, build master : 16e4a2a - Tue Nov 3 19:49:22 UTC 2015 | |
| Docker version 1.9.0, build 76d6bc9 | |
| $ sudo -i | |
| $ rm -rf /var/lib/docker/network | |
| # exit from the Docker host and then run |
I hereby claim:
To claim this, I am signing this object:
###Querying the database
Now you just need to learn a little bit of new sqls for selecting stuff (creating and updating is transparent). Find records that contains a key named 'foo’:
Person.where("data ? 'foo'")###Core Commands
| Command | Description |
|---|---|
| cd | Go to Home directory |
| cd ~ | Go to Home directory |
| cd [folder] | Go to a [folder] |
| cd / | Go to Root of the operating system |
| ls | List files and sub-directories in the directory |
| ls -l | List details of files and sub-directories in the directory |
###Checkout a remote branch and set it to track the remote
This will keep your local branch in sync with the remote on push/pull/fetch
[email protected]:~$ git branch -vv
joshes_branch 6a1e534 [origin/joshes_branch] added script tags to index.html| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |