Skip to content

Instantly share code, notes, and snippets.

@cilquirm
cilquirm / Join a Sharing Session.scpt
Created August 2, 2012 21:19
a simple applescript for quicksilver to join a sharing session
using terms from application "Quicksilver"
on process text joinCode
tell application "join.me" to activate
tell application "System Events"
tell process "join.me"
set visible to true
keystroke joinCode
click button 7 of window 1
end tell
end tell
And I press "Save" # features/step_definitions/web_steps.rb:52
Expected(200) <=> Actual(403 Forbidden)
request => {:ssl_verify_peer=>true, :connect_timeout=>60, :scheme=>"https", :instrumentor_name=>"excon", :port=>"443", :write_timeout=>60, :ssl_ca_file=>"/Users/aadid/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/excon-0.13.4/data/cacert.pem", :mock=>false, :host=>"peer-development.s3.amazonaws.com", :retry_limit=>4, :query=>nil, :path=>"/reward_logos%2Flogos%2F98%2Foriginal%2Freward-64.png", :headers=>{"Authorization"=>"AWS S3_ACCESS_KEY_HERE:oAxZyFtVhguSpadu6ZMZXWcEhEE=", "x-amz-acl"=>"public-read", "Date"=>"Fri, 07 Sep 2012 18:18:21 +0000", "Content-Type"=>"image/png", "Content-Length"=>2268, "Host"=>"peer-development.s3.amazonaws.com:443"}, :method=>"PUT", :read_timeout=>60, :idempotent=>true, :expects=>200, :body=>#<File:/Users/aadid/Workspaces/efficiency20/peer/public/uploads/tmp/20120907-1118-29366-0915/rewar
And I press "Save" # features/step_definitions/web_steps.rb:52
private method `gsub!' called for nil:NilClass (NoMethodError)
./app/models/rewards/reward_creator.rb:8:in `create'
./app/models/rewards/new_reward_form.rb:49:in `save'
./app/controllers/admin/rewards_controller.rb:18:in `create'
./lib/e20/rack/locale.rb:10:in `call'
./lib/e20/rack/program_detector.rb:13:in `call'
./lib/e20/middleware/integration_test/exception_checker.rb:21:in `call'
./lib/e20/rack/campaign_redirecter.rb:25:in `_call'
./lib/e20/rack/campaign_redirecter.rb:13:in `call'
self.guid = Digest::SHA2.new.tap do |d|
d << (self.name || "NULL")
d << (self.key || "NULL")
d << (self.infogroup_id || "NULL")
d << (self.street || "NULL")
d << (self.city || "NULL" )
d << (self.state || "NULL")
end
module M
module N
class C
def say(str)
puts str
end
end
end
end
@cilquirm
cilquirm / gist:6185210
Created August 8, 2013 14:45
server names
authoring.content.prd.currdc.net
authoring-stg.content.poc.currdc.net
authoring-demo.content.poc.currdc.net
cms.content.prd.currdc.net
cms-stg.content.poc.currdc.net
import groovy.json.*
def structure = '''
{
"name": "Unit 1 Keyname",
"structuralName": "unit",
"businessKey": "8a9d81d54017c6b1014017c6d4250021",
"revision": 0,
"meta": {
"type": "UNIT"
import groovy.json.*
def structure = '''
{
"name": "Unit 1 Keyname",
"structuralName": "unit",
"businessKey": "8a9d81d54017c6b1014017c6d4250021",
"revision": 0,
"meta": {
"type": "UNIT"
@cilquirm
cilquirm / gist:31dad05e44af3b89c9c2
Last active September 24, 2015 14:18
try example
Try.of( () -> somePotentiallyFatalOperation() )
.recover( (x) -> { logger.error("oops:",x); throw x; })
.orElse("Boo");
### Keybase proof
I hereby claim:
* I am cilquirm on github.
* I am cilquirm (https://keybase.io/cilquirm) on keybase.
* I have a public key whose fingerprint is B864 809B D36E D7C7 DB81 7FDB EB27 BF92 BD46 ACCF
To claim this, I am signing this object: