This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #!/bin/bash | |
| # Best use case is to create a file "update_local_db.sh" in your project folder and then call the command with bash update_local_db | |
| function LastBackupName () { | |
| heroku pgbackups | tail -n 1 | awk '{print $1;}' | |
| } | |
| # This part assumes you have a low limit on no. of backups allowed | |
| old_backup=$(LastBackupName) |
| sing System; | |
| sing Castle.ActiveRecord; | |
| amespace ActiveRecordSample | |
| [ActiveRecord] | |
| public class User : ActiveRecordBase<User> | |
| { | |
| private int id; | |
| private string username; | |
| private string password; |
| sing System; | |
| sing Castle.ActiveRecord; | |
| amespace ActiveRecordSample | |
| [ActiveRecord] | |
| public class User : ActiveRecordBase<User> | |
| { | |
| private int id; | |
| private string username; | |
| private string password; |
| - Chrome | |
| - Firefox | |
| - Console2 | |
| - msysgit | |
| - AVG Anti-Virus | |
| - Notepad++ | |
| - VPN client | |
| - Virtual Box | |
| - MS Office | |
| - Hipchat |
| #!/bin/bash | |
| # RUN_AS: The user to run stash as. Its recommended that you create a separate user account for security reasons | |
| RUN_AS=jmeridth | |
| # STASH_HOME: The path to the Stash installation. Its recommended to create a symbolic link to the latest version so | |
| # the process will still work after upgrades. | |
| STASH_HOME="/var/www/apps/stash" | |
| stashctl() { |
| #!/usr/bin/env ruby | |
| `rake db:migrate && rake db:test:prepare` if `git diff --name-only HEAD@{1} HEAD`.index("db/migrations) |