Skip to content

Instantly share code, notes, and snippets.

View tolsen's full-sized avatar

Tim Olsen tolsen

  • New York, NY
  • 03:29 (UTC -04:00)
View GitHub Profile
@tolsen
tolsen / chef-nrsysmond.rb
Created February 6, 2012 17:19 — forked from benders/chef-nrsysmond.rb
Simple New Relic server monitoring recipe for Chef
#
# Thanks to Eron Nicholson at 37 Signals for providing this,
# send thanks to him and blame to me. -Nic Benders
#
template "/etc/apt/sources.list.d/newrelic.list" do
source "newrelic.list.erb"
owner "root"
group "root"
mode 0640
Host git git.jux.nu git.limebits.net
HostName git.jux.nu
User git
PasswordAuthentication no
PubkeyAuthentication yes
StrictHostKeyChecking yes
GlobalKnownHostsFile ~/.ssh/jux_known_hosts
Host *.jux.nu
PasswordAuthentication no
@tolsen
tolsen / gist:5007366
Last active December 14, 2015 01:38
jruby json gem dominates
$ jruby --version
jruby 1.7.2.dev (1.9.3p327) 2013-01-18 fffffff on Java HotSpot(TM) 64-Bit Server VM 1.7.0_07-b10 [darwin-x86_64]
$ gem list json
*** LOCAL GEMS ***
json (1.7.7 java)
$ irb
jruby-1.7.2.dev :001 > require 'json'
=> true