View .bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.bashrc | |
# Homebrew | |
export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
# Path to the bash it configuration | |
export BASH_IT="/Users/bradrobertson/.bash_it" | |
# Lock and Load a custom theme file | |
export BASH_IT_THEME="bobby" |
View gist:579718
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# report.rb | |
# Aliased below. This will check for existing ReportDetail with matching attributes (all of them) | |
# And if it exists, set the ID, otherwise, set the report_period_detail object using the original method | |
# Not sure if there is some Railsy way of doing this... | |
def report_detail_with_find(attrs) | |
report_detail = ReportDetail.find_or_create_by_duration_and_display_duration_and_starting_month_and_period_offset(attrs[:duration],attrs[:display_duration],attrs[:starting_month],attrs[:period_offset]) | |
report_detail_without_find(report_detail) | |
end |
View gist:659628
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Generic script for running ruby scripts as daemons using | |
# jsvc and a java class to control the daemon. | |
# | |
# Contains common parameters and start/stop | |
# Things you'll need to set on a per script/daemon basis: | |
# SCRIPT_NAME - Path to the ruby script which creates a Daemon | |
# object for jsvc to control | |
# APP_NAME - Name of your application |
View gist:659821
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# command_line_parser_spec.rb | |
it "respects web_app_dir if applicable when loading config" do | |
args = "--dir #{MOCK_WEB_APP_DIR} --config".split | |
options = subject.parse(args) | |
options[:config].should == "#{MOCK_WEB_APP_DIR}/config/trinidad.yml" | |
end | |
# command_line_parser.rb (line 32) |
View gist:669165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remote machine | |
admin@velo.uat:/mnt/apps/velo-ul$ ls -l | |
total 12 | |
lrwxrwxrwx 1 app admin 41 2010-11-09 09:40 current -> /mnt/apps/velo-ul/releases/20101109143915 | |
drwxrwxr-x 40 app admin 4096 2010-11-09 09:39 releases | |
drwxrwxr-x 9 app admin 4096 2010-11-02 15:25 shared | |
drwxr-xr-x 3 app admin 4096 2010-11-02 11:35 tomcat.8080 | |
# local machine | |
brad-robertsons-macbook-pro:trunk bradrobertson$ cap staging deploy:stop |
View gist:669150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Generic script for running ruby scripts as daemons using | |
# jsvc and a java class to control the daemon. | |
# | |
# Contains common parameters and start/stop | |
# Things you'll need to set on a per script/daemon basis: | |
# SCRIPT_NAME - Path to the ruby script which creates a Daemon | |
# object for jsvc to control | |
# APP_NAME - Name of your application |
View trinidad.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
port: 8080 # port where trinidad is running | |
ajp: # ajp configuration section | |
port: 8009 | |
jruby_min_runtimes: 1 # min number of runtimes | |
jruby_max_runtimes: 1 # max number of runtimes | |
extensions: | |
logging: |
View trinidad.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
port: 8080 # port where trinidad is running | |
ajp: # ajp configuration section | |
port: 8009 | |
jruby_min_runtimes: 1 # min number of runtimes | |
jruby_max_runtimes: 1 # max number of runtimes | |
extensions: | |
logging: |
View trinidad.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
port: 8080 # port where trinidad is running | |
ajp: # ajp configuration section | |
port: 8009 | |
jruby_min_runtimes: 1 # min number of runtimes | |
jruby_max_runtimes: 1 # max number of runtimes | |
web_apps: | |
default: |
View database.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: mysql | |
database: velo_ultralite_development | |
username: root | |
password: | |
timeout: 5000 |
OlderNewer