Skip to content

Instantly share code, notes, and snippets.

@shoe
Created Sep 20, 2010
Embed
What would you like to do?
Navionics Training Notes
Navionics Training Notes
# To clone:
$ git clone git@mojotech.unfuddle.com:mojotech/navionics.git
# From ~/.gitconfig
[branch]
autosetupmerge = true
[alias]
b = branch
co = checkout
cp = cherry-pick
rb = rebase
rbcont = rebase --continue
[color]
diff = auto
branch = auto
interactive = auto
status = auto
$ git checkout store
# now HEAD -> store
$ git branch cas/test-branch
# now cas/test-branch is the same commit as store
OR
$ git branch cas/test-branch2 mobile
# now cas/test-branch2 is the same commit as mobile
# create a new branch
$ git branch cas/new-branch-name
# checkout a branch
$ git checkout cas/new-branch-name
# create and checkout in one step:
$ git checkout -b cas/new-branch-name
# (defaults to creating branch from current HEAD)
# GITX
# current version is 0.7, newer version is available
# two modes
# - one for viewing, searching, navigating history
# - another for preparing and making commits
#
# configure the database and application
$ cp config/database.yml.sample config/database.yml
$ cp config/servers.yml.sample config/servers.yml
$ cp config/paypal.yml.example config/paypal.yml
$ cp config/newrelic.yml.example config/newrelic.yml
# INSTALL GEMS
$ sudo rake gems:install
$ sudo gem install httparty ruby-debug
$ sudo gem install ruby-ole
$ sudo gem install ruby-mysql
# create a database
$ rake db:setup
# grab the database dump from Time Capsule: webstore/navionics_staging.sql.gz
# import staging database
$ gunzip navionics_staging.sql.gz
$ cat navionics_staging.sql | mysql -u root navionics_dev
$ GIT SUBMODULES (prawn)
$ git submodule init
$ git submodule update
$ (cd vendor/prawn && git submodule init && git submodule update)
$ sudo gem install capistrano morhekil-capistrano-deepmodules
# add two level domain to /etc/hosts
$ sudo vi /etc/hosts
# change "127.0.0.1 localhost" to "127.0.0.1 localhost localhost.localdomain"
# now you MUST EDIT config/servers.yml
# you MUST use a two level domain.
# Install Adobe AIR 2.0 SDK (e.g. to /opt/share/AdobeAIRSDK)
# add the following line to ~/.profile
PATH=$PATH:/opt/share/AdobeAIRSDK/bin
# MUST reload shell (terminal) before change takes effect.
# To run AIR app locally:
$ rake air:debug
# create fake charts
$ mkdir -p charts/GoldCharts/Small2/
$ mkdir -p charts/GoldCharts/XL9/20XG/
dd if=/dev/zero of=charts/GoldCharts/Small2/5G356S2.nv2 count=10240 bs=1024
dd if=/dev/zero of=charts/GoldCharts/XL9/20XG/20XG.nv2 count=10240 bs=1024
@shoe
Copy link
Author

shoe commented Sep 20, 2010

From ~/.gitconfig

[branch]
autosetupmerge = true
[alias]
b = branch
co = checkout
cp = cherry-pick
rb = rebase
rbcont = rebase --continue

[color]
diff = auto
branch = auto
interactive = auto
status = auto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment