Skip to content

Instantly share code, notes, and snippets.

View bklang's full-sized avatar

Ben Klang bklang

View GitHub Profile
Object {template: "<li class="message normal-message"><a class="label…an class="message-body">{{{message}}}</span></li>", templateData: Object}
template: "<li class="message normal-message row me"><div class="col-md-1"><img src="/system/avatars/745/thumb/aoseuuxsivbmji9kodgu.png?1400771585" /></div><div class="col-md-11"><div class="upper"><a class="label name" href="#">{{displayName}}</a><span class="label timestamp" data-timestamp="{{timestamp}}">{{time}}</span></div><span class="message-body">{{{message}}}</span></div></li>"
templateData: Object
displayName: "Ben Klang"
from: "cluck_cluck@conference.powerhrg.com"
message: "z"
name: "Ben Klang"
roomjid: "cluck_cluck@conference.powerhrg.com"
==> default: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
==> default: [2014-10-19T14:45:31+00:00] INFO: *** Chef 11.16.4 ***
==> default: [2014-10-19T14:45:31+00:00] INFO: Chef-client pid: 1451
==> default: [2014-10-19T14:45:32+00:00] INFO: Client key /etc/chef/client.pem is not present - registering
==> default: [2014-10-19T14:45:36+00:00] INFO: HTTP Request Returned 401 Unauthorized: error
==> default:
==> default: ================================================================================
==> default: Chef encountered an error attempting to create the client "bklang-dev"
==> default: ================================================================================
==> default:
[2014-09-09 09:47:26.021] DEBUG Adhearsion::Call: f687135e-bd40-4063-9460-3a13587e057c@: Account: #<Account @values={:id=>1, :name=>"League of Extraordinary Doctors", :welcome_message=>nil, :opens_at=>nil, :closes_at=>nil, :welcome_audio=>nil, :backup_number=>"8056182382", :street=>"510 State St Suite 220", :city=>"Santa Barbara", :zip=>"93105", :phone=>"7604733993", :contact=>"Andrew Cox", :email=>"owner@domain.com", :created_at=>2014-09-09 06:29:34 -0700, :updated_at=>2014-09-09 06:29:34 -0700, :unit_number=>nil, :state_id=>5, :area_code_id=>177, :category_mode=>nil, :owner_id=>1}>
[2014-09-09 09:47:26.021] ERROR Adhearsion::Call: f687135e-bd40-4063-9460-3a13587e057c@: <RuntimeError> Help?
/mnt/hgfs/ringrx/oncall-telephony/app/controllers/authentication_controller.rb:13:in `run'
/home/bklang/.rvm/gems/ruby-2.1.2@audible_rx/bundler/gems/adhearsion-4b2f7f7960bd/lib/adhearsion/call_controller.rb:146:in `invoke'
/mnt/hgfs/ringrx/oncall-telephony/app/controllers/account_management_controller.rb:41:in `authent

Keybase proof

I hereby claim:

  • I am bklang on github.
  • I am bklang (https://keybase.io/bklang) on keybase.
  • I have a public key whose fingerprint is C534 CBAA 2293 96B3 FFC0 CBB8 FEFC DD8B 6EB6 B73B

To claim this, I am signing this object:

- force ownership of /srv/pe to pe:pe * application_nginx_nginx_load_balancer[pe] action before_restart (up to date)
Recipe: <Dynamically Defined Resource>
* rbenv_execute[app_ahn_dependencies] action run
* execute[eval "$(rbenv init -)"] action run
- execute eval "$(rbenv init -)"
* execute[app_ahn_dependencies] action run
================================================================================
Error executing action `run` on resource 'execute[app_ahn_dependencies]'
Recipe: stentofon_mojolingo_demo::app
* package[pcre] action install
[2014-05-05T17:48:06+00:00] INFO: Processing package[pcre] action install (stentofon_mojolingo_demo::app line 7)
(up to date)
* package[pcre-devel] action install[2014-05-05T17:48:06+00:00] INFO: Processing package[pcre-devel] action install (stentofon_mojolingo_demo::app line 7)
(up to date)
* package[redhat-lsb] action install[2014-05-05T17:48:06+00:00] INFO: Processing package[redhat-lsb] action install (stentofon_mojolingo_demo::app line 7)
(up to date)
Recipe: git::default
Recipe: stentofon_mojolingo_demo::app
* package[pcre] action install
[2014-05-05T17:48:06+00:00] INFO: Processing package[pcre] action install (stentofon_mojolingo_demo::app line 7)
(up to date)
* package[pcre-devel] action install[2014-05-05T17:48:06+00:00] INFO: Processing package[pcre-devel] action install (stentofon_mojolingo_demo::app line 7)
(up to date)
* package[redhat-lsb] action install[2014-05-05T17:48:06+00:00] INFO: Processing package[redhat-lsb] action install (stentofon_mojolingo_demo::app line 7)
(up to date)
Recipe: git::default
@bklang
bklang / build.log
Created September 6, 2012 15:35
res_rtp_asterisk build failure
$ make
make[1]: Entering directory `/export/home/admin/asterisk-11-svn'
CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
make[2]: Entering directory `/export/home/admin/asterisk-11-svn/menuselect'
make[2]: `makeopts' is up to date.
make[2]: Leaving directory `/export/home/admin/asterisk-11-svn/menuselect'
[CC] res_rtp_asterisk.c -> res_rtp_asterisk.o
In file included from /export/home/admin/asterisk-11-svn/include/asterisk/stun.h:29,
from res_rtp_asterisk.c:51:
/export/home/admin/asterisk-11-svn/include/asterisk/network.h: In function `inaddrcmp':
@bklang
bklang / rubyconfbr_demo.rb
Created September 3, 2012 19:50
RubyConf Brasil 2012 Demonstration Tropo App
require 'date'
def upcoming_presentations
@upcoming_presentations ||= [
[
DateTime.parse('2012-08-30 09:20:00 -0300')...DateTime.parse('2012-08-30 10:10:00 -0300'),
{:title => 'POR AMOR AO CÓDIGO', :speaker => 'BRUCE WILLIAMS'}
],
[
DateTime.parse('2012-08-30 10:40:00 -0300')...DateTime.parse('2012-08-30 11:30:00 -0300'),
@bklang
bklang / parser.rb
Created July 3, 2012 04:51
OpenBSD DHCPD Sync Parser in Ruby (work in progress)
require 'ipaddr'
class Dhcpsink
class Parser
UnsupportedVersionError = Class.new StandardError
UnsupportedMessageTypeError = Class.new StandardError
ShortPacketError = Class.new StandardError
# From OpenBSD src/usr.sbin/dhcpd/sync.h line 45:
# struct dhcp_synchdr {