This file contains hidden or 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
ssh-dss AAAAB3NzaC1kc3MAAACBALbrWIzmqYCkO/k5wWppEdFc6Np60Rhaf0RGrnG1ItJRBK8qrmrHxHpP9fR5qMd3EqziNKbZBh5/wETpsz4PcIUVCDBjKn7xAw3ulwnNC7/SmnoebK3xvgGp4ajxMxmjOBLqiSL8Py/2HSR1JCem5yXBjqtW1KN1jwg0/EowgxMZAAAAFQDDY2QYPEP6w4+YrXt08D05+gFDHwAAAIBKyCn1PnYB71z/lfJf7Ef19/aU/m/K+sLx3vzE5YtcAA8dwy3O+8YS4BpWBeb1WoN9EPqeAp3eTMXzp0eiYvblFRi8IBy1rsNUgAyj9qIeSO/j3Pvmsc5lQ3M6hGl2SBNw2yNjN8jr3YyL0Di2R2qytl38l8psJzGVL1MxYVD1mwAAAIBRUG9APL0UDveVEgOGp3plPrZYXD2wNbuzz8mXbsCIs1H0ZGoBeGeu7GBGdvwOfBPm1iCesR2ebrLiYTefWwTcPGFg9pSvTmTILzBykXbeUedI8u3jQ76zAJhGdYseotJgcx6b55ANXk0LqdcKIQKehC0qoVLDkVmdrcVhWqga2g== [email protected] |
This file contains hidden or 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
node 'puppet.ertw.com' inherits basenode { | |
include apache | |
include rvm | |
rvm_system_ruby { | |
'ruby-1.9.3': | |
ensure => 'present', default_use => true; | |
'ree': | |
ensure => 'present', default_use => false; | |
} |
This file contains hidden or 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
#!/usr/bin/php -q | |
<?php | |
/** | |
* Example that send notifications to Growl using the new GNTP/1.0 protocol | |
* | |
* PHP version 5 | |
* | |
* @category Networking | |
* @package Net_Growl | |
* @author Laurent Laville <[email protected]> |
This file contains hidden or 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
TMPFILE=`mktemp /tmp/wave.XXXXXX` || exit 1 | |
USERNAME=my_github_user_name | |
PASSWORD=my_password | |
curl -s --location -u $USERNAME:$PASSWORD https://github.com/waveaccounting/documentation/raw/master/devops/ssh_config | sed "s/USERNAME/$USERNAME/;/Identity/d" > $TMPFILE | |
lead='BEGIN WAVE SERVERS' | |
tail='END WAVE SERVERS' | |
sed -i.bak -e "/$lead/,/$tail/{ | |
/$lead/ { |
This file contains hidden or 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
debian-squeeze64:vagrant((6495e5f...) $%|BISECTING) $ git bisect run rake test:reports | |
running rake test:reports | |
/usr/local/rvm/rubies/ree-1.8.7-2012.02/bin/ruby -I"lib:test" -I"/vagrant/vendor/gems/ruby/1.8/gems/rake-0.9.2.2/lib" "/vagrant/vendor/gems/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/reporting/**/*_test.rb" | |
Loaded suite /vagrant/vendor/gems/ruby/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader | |
Started | |
....................................... | |
Finished in 36.556862 seconds. | |
39 tests, 740 assertions, 0 failures, 0 errors | |
6495e5f8b1014d2b159436d01655b2727e17a856 was both good and bad |
This file contains hidden or 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
require 'rubygems' | |
require 'aws/s3' | |
require 'base64' | |
# Override the authorization header | |
module AWS | |
module S3 | |
class Connection #:nodoc: | |
def authenticate!(request) | |
ignore = Authentication::Header.new(request, access_key_id, secret_access_key) |
This file contains hidden or 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
SeanWalbergsMacBookPro:versapay(master) $ rake test | |
/Users/sean/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby -I"lib:lib:test" -I"/Users/sean/.rvm/gems/ree-1.8.7-2012.02/gems/rake-0.9.2.2/lib" "/Users/sean/.rvm/gems/ree-1.8.7-2012.02/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/*_test.rb" | |
Loaded suite /Users/sean/.rvm/gems/ree-1.8.7-2012.02/gems/rake-0.9.2.2/lib/rake/rake_test_loader | |
Started | |
.......EEEEE....... | |
Finished in 0.014907 seconds. | |
1) Error: | |
test_creating_a_credit_card_link(HelperTest): | |
RuntimeError: In order to use #url_for, you must include routing helpers explicitly. For instance, `include Rails.application.routes.url_helpers |
This file contains hidden or 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
function _ssh_completion() { | |
perl -ne 'print "$1 " if /^Host (.+)$/' ~/.ssh/config | |
} | |
complete -W "$(_ssh_completion)" ssh |
This file contains hidden or 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
# I'm proposing a few changes to the property system: | |
# | |
# 1. Instead of specifying the has_many and include, change it to a has_properties (like an acts_as_* plugin) | |
# Then we also configure the names of properties that need multiple instances, which gets it out of the controller. | |
# (I've already implemented this part locally and I think it looks a lot nicer) | |
# | |
# 2. On the first use of an object's properties, load all the object's properties into memory and | |
# operate on that cache, writing through to disk if need be. Editing employees, employers, and | |
# running payroll, all make use of multiple properties and this should be more efficient. | |
# |
This file contains hidden or 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
module ActsAsHistorical | |
extend ActiveSupport::Concern | |
included do | |
end | |
module ClassMethods | |
def acts_as_historical(options = {}) | |
has_many :histories, :as => :historical, :dependent => :destroy | |
include MyInstanceMethods |