Skip to content

Instantly share code, notes, and snippets.

View JustinAiken's full-sized avatar
💎
Rubyin'

Justin Aiken JustinAiken

💎
Rubyin'
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: Illegal quoting in line 1.
["R284490254", "R002312707", "R150010821", "R494090278", "R762026015", "R486786625", "R279854032", "R928435718", "R826589654", "R136571789", "R700842523", "R463878914", "R821414924", "R425330408", "R758066703", "R146087323", "R285444831", "R872623433", "R293591155", "R563330940", "R228129173", "R648158131", "R961626795", "R932947258", "R366981452", "R225420294", "R855770325", "R026995696", "R272650129", "R544493530", "R679938975", "R830623791", "R775113747", "R784803294", "R834607075", "R215033219", "R003940814", "R148819104", "R452871096", "R437936615", "R850106137", "R493464173", "R717098336", "R948834635", "R260448929", "R547811040", "R635034323", "R216737208", "R018472747", "R875888140", "R538370085", "R110582630", "R424010797", "R939828852", "R961989433", "R176775791", "R519215236", "R095035318", "R382245767", "R212878289", "R141969718", "R037721565", "R689163924", "R979284282", "R912430035", "R633330102", "R528096617", "R594737367", "R937135988", "R773780397", "R601216197", "R998450228", "R423590459", "
[228470f4-464e-4f6d-9411-e0e0efaecbda] ActionController::RoutingError (No route matches [GET] "/"):
[8dea6489-61d0-4b71-a379-f66511c79a30] ActionController::RoutingError (No route matches [GET] "/showLogin.cc"):
[736de989-da56-4de2-9133-8f24d0c95933] ActionController::RoutingError (No route matches [GET] "/"):
[bc145798-4030-45da-b973-5eecbc9ed18a] ActionController::RoutingError (No route matches [GET] "/.env"):
[2fbbc967-ca84-43e0-a9e0-7166e641e5f8] ActionController::RoutingError (No route matches [GET] "/"):
[7f36a1d3-3a50-4a9c-a4eb-2f0cdce211f6] ActionController::RoutingError (No route matches [GET] "/"):
[98badd41-8586-461a-a0bb-3e9f9c51ba46] ActionController::RoutingError (No route matches [GET] "/autodiscover/autodiscover.json"):
[561fe96d-1969-435f-b1e5-9fbd4a6de3bc] ActionController::RoutingError (No route matches [GET] "/"):
[8914d830-15f2-4a89-aa68-21297605720d] ActionController::RoutingError (No route matches [GET] "/ecp/Current/exporttool/microsoft.exchange.ediscovery.exporttool.application"):
[9f
#!/usr/bin/env ruby
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "net-sftp"
end
require "net/sftp"
@JustinAiken
JustinAiken / keybase.md
Created August 18, 2014 21:12
Keybase Proof

Keybase proof

I hereby claim:

  • I am justinaiken on github.
  • I am justinaiken (https://keybase.io/justinaiken) on keybase.
  • I have a public key whose fingerprint is D5DA 713A C9A7 5CB4 46AB B4AF 08D2 F343 6C6C BB16

To claim this, I am signing this object:

@JustinAiken
JustinAiken / lumenvox.pp
Created April 9, 2014 23:25
puppet error
define lumenvox::language_pack (
$language = undef,
$version = latest,
) {
package { "LumenVox-${language}SREModel":
ensure => $version,
provider => 'yum',
}
}
@JustinAiken
JustinAiken / adhearsion.log
Created February 18, 2014 19:12
Bits o' a log
[2014-02-16 12:04:21] DEBUG Roster: Selecting [email protected]/browser for inside_sales_prospect
[2014-02-16 12:04:21] INFO Roster: Updating [email protected]/browser to composing
[2014-02-16 12:04:21] DEBUG Adhearsion::OutboundCall: 6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d@: Finished executing controller #<OutboundConnectingController call=6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d, metadata={}>
[2014-02-16 12:04:21] INFO Adhearsion::OutboundCall: 6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d@: Connecting customer inside_sales 25376541 to extension 363
[2014-02-16 12:04:21] INFO OutboundCustomersController: Call was hung up while executing a controller
[2014-02-16 12:04:21] DEBUG OutboundCustomersController: Finished executing controller #<OutboundCustomersController call=, metadata={}>
[2014-02-16 12:04:21] INFO Adhearsion::OutboundCall: 6d0cd0bd-83bb-4a84-9eab-82f43aef9e7d@: connecting inside_sales 25376541 to extension 363
[2014-02-16 12:04:21] DEBUG Adhearsion::OutboundCall: 232d2f70-566d-47ae-82d9-eb2a4d532e0a@: Executing co
diff --git a/app/classes/talkbox/phone_config_creator.rb b/app/classes/talkbox/phone_config_creator.rb
index 104f263..0a22236 100644
--- a/app/classes/talkbox/phone_config_creator.rb
+++ b/app/classes/talkbox/phone_config_creator.rb
@@ -29,18 +29,22 @@ class PhoneConfigCreator
end
def generate
- if user.office_ext.present? && APP_CONFIG['provision']['pbx_host']
- config_file << pbx_account
cookbook 'build-essential'
cookbook 'apt'
cookbook 'ruby_build'
cookbook 'rbenv', :git => 'https://github.com/fnichol/chef-rbenv'
cookbook 'unicorn'
cookbook 'nginx'
cookbook 'runit'
cookbook 'rails-lastmile', :git => 'git://github.com/DanThiffault/rails-lastmile.git'
@JustinAiken
JustinAiken / order.rb
Created February 21, 2013 19:06
refactoring
def order(n)
i=1, a=1, list=[]
until (i==61 or a==n) do
if (a^i).modulo(n)==1
[a,i]>>list
a+=1
i=1
else
i+=1
This file has been truncated, but you can view the full file.
[2013-01-22 11:14:46] DEBUG Adhearsion::Call: bc22d026-9854-4c87-a6e8-b894fb44e596: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="VarSet", attributes_hash={:privilege=>"dialplan,all", :channel=>"SIP/4.55.12.163-00007e7d", :variable=>"PLAYBACKSTATUS", :value=>"SUCCESS", :uniqueid=>"1358871283.32381"}, target_call_id="bc22d026-9854-4c87-a6e8-b894fb44e596", component_id=nil, target_mixer_name=nil>
[2013-01-22 11:14:46] DEBUG Adhearsion::Call: bc22d026-9854-4c87-a6e8-b894fb44e596: Receiving message: #<Punchblock::Event::Asterisk::AMI::Event name="AGIExec", attributes_hash={:privilege=>"agi,all", :subevent=>"End", :channel=>"SIP/4.55.12.163-00007e7d", :commandid=>"1369246299", :command=>"EXEC Playback \"lmc/monitored-and-recorded\"", :resultcode=>"200", :result=>"Success"}, target_call_id="bc22d026-9854-4c87-a6e8-b894fb44e596", component_id=nil, target_mixer_name=nil>
[2013-01-22 11:14:46] DEBUG Adhearsion::Call: bc22d026-9854-4c87-a6e8-b894fb44e596: Receiving message: #<Punchblock::Event::Ast