Skip to content

Instantly share code, notes, and snippets.

View aeden's full-sized avatar

Anthony Eden aeden

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aeden on github.
  • I am aeden (https://keybase.io/aeden) on keybase.
  • I have a public key whose fingerprint is A11F AA64 C6AA B355 9387 C87E 07B9 4E5A CDA4 BFAE

To claim this, I am signing this object:

@aeden
aeden / dig-ns
Last active August 29, 2015 14:06
; <<>> DiG 9.8.3-P1 <<>> @ns1.contegix.com cc.getapp.com ns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65194
;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;cc.getapp.com. IN NS
@aeden
aeden / caller.coffee
Last active August 29, 2015 14:06
Example code for Go Remote Control talk
module.exports = (robot) ->
# Stop a DNSimple name server, run chef-client and start it back up
robot.respond /deploy nameserver (\w+-\w+-\w+)$/i, (msg) ->
host = msg.match[1]
callGoRemoteControl(msg, host, 'update')
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> Go app detected
remote: -----> Installing go1.4.1... done
remote: -----> Running: godep go install -tags heroku ./...
remote: service.go:7:2: cannot find package "github.com/miekg/dns" in any of:
remote: /app/tmp/cache/go1.4.1/go/src/github.com/miekg/dns (from $GOROOT)
remote: /tmp/build_85352959ffbe30770226bc78d7259c76/.heroku/g/src/github.com/aetrion/zonestatus/Godeps/_workspace/src/github.com/miekg/dns (from $GOPATH)
desc "Generate and deploy assets"
task :deploy_assets, :roles => :app do
# get the previous timestamp
old_timestamp = File.read("config/deploy_timestamp").to_i rescue 0
# generate timestamp into config/deploy_timestamp
timestamp = Time.now.to_i
File.open("config/deploy_timestamp", 'w') do |f|
f.write(timestamp)
end
This is a test.
module Poco
def field_id
@field_id ||= rand
end
def field_id=(field_id)
@field_id = field_id
end
end
Time.send(:include, Poco)
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "refinery"
gemspec.summary = "Refinery processes data in a distributed environment."
gemspec.email = "anthonyeden@gmail.com"
gemspec.homepage = "http://github.com/aeden/refinery"
gemspec.description = "Process data in a distributed fashion."
gemspec.authors = ["Anthony Eden"]
gemspec.files.exclude 'docs/**/*'
E, [2009-07-07T18:12:22.791000 #21667][198] ERROR -- : An error occurred while receiving from the waiting queue: Could not open any of [xml2, xslt, exslt]
E, [2009-07-07T18:12:22.791000 #21667][198] ERROR -- : /opt/jruby/lib/ruby/1.8/ffi/library.rb:18:in `ffi_lib'
/opt/jruby/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri/ffi/libxml.rb:5
/opt/jruby/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri/ffi/libxml.rb:31:in `require'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/jruby/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri.rb:10
/opt/jruby/lib/ruby/gems/1.8/gems/nokogiri-1.3.2-java/lib/nokogiri.rb:31:in `require'
/opt/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/jruby/lib/ruby/gems/1.8/gems/pauldix-sax-machine-0.0.13/lib/sax-machine/sax_document.rb:1
/opt/jruby/lib/ruby/gems/1.8/gems/pauldix-sax-machine-0.0.13/lib/sax-machine/sax_document.rb:31:in `require'
require 'java'
require File.dirname(__FILE__) + '/vendor/jaxb-20090708.jar'
include_class javax.xml.bind.UnmarshalException
/usr/local/lib/jruby-1.3.0/lib/ruby/site_ruby/1.8/builtin/javasupport.rb:49:in `get_proxy_or_package_under_package': cannot load Java class javax.xml.bind.UnmarshalException (NameError)
from /usr/local/lib/jruby-1.3.0/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:51:in `method_missing'
from import-test.rb:3