Skip to content

Instantly share code, notes, and snippets.

View strongjz's full-sized avatar

James Strong strongjz

View GitHub Profile
@strongjz
strongjz / gist:042516b1844c8abea147
Created March 10, 2015 21:40
load errors with ruby, bunny and honeybadger class
irb(main):001:0> require 'bunny'
=> true
irb(main):002:0> c = Bunny.new
=> #<Bunny::Session:0x007f7074461e00 @default_hosts_shuffle_strategy=#<Proc:0x007f7074461ce8@/usr/local/lib/ruby/gems/2.0.0/gems/bunny-1.7.0/lib/bunny/session.rb:137>, @opts={}, @hosts=["127.0.0.1"], @host_index=1, @port=5672, @user="guest", @pass="guest", @vhost="/", @logfile=#<IO:<STDOUT>>, @threaded=true, @logger=#<Logger:0x007f7074461b30 @progname="#<Bunny::Session:70060481908480 guest@127.0.0.1:5672, vhost=/, hosts=[127.0.0.1]>", @level=2, @default_formatter=#<Logger::Formatter:0x007f7074461a90 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x007f7074461a18 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x007f70744619f0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x007f7074461978>>>>, @automatically_recover=true, @network_recovery_interval=5.0, @recover_from_connection_close=false, @continuation_timeout=4000, @status=:not_connected, @blocked=fal
@strongjz
strongjz / pie.coffee
Last active August 29, 2015 14:08 — forked from stevenleeg/pie.coffee
class Dashing.Pie extends Dashing.Widget
@accessor 'value'
onData: (data) ->
@render(data.value)
render: (data) ->
if(!data)
data = @get("value")
if(!data)
@strongjz
strongjz / gist:f7d30e9f495126d2d0da
Created October 16, 2014 17:56
sample init script for connecting ec2 phpmyadmin to rds instance
#!/bin/bash
# User Data Script for Bootstrapping Lab - Architecting on AWS : Advanced Concepts
# Enable EPEL Repo
# This step is using sed, a standard Linux stream editor, to change the value of one line in a configuration file
# Reference: http://www.gnu.org/software/sed/manual/sed.html
/bin/sed -i '0,/enabled\=0/{s/0/1/}' /etc/yum.repos.d/epel.repo
# Install PHPMyAdmin
# This step is using yum, the Amazon Linux package manager, to install PHPMyAdmin and all of its components