This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone rbenv into ~/.rbenv | |
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv | |
# Add rbenv to your PATH | |
# NOTE: rbenv is *NOT* compatible with rvm, so you'll need to | |
# remove rvm from your profile if it's present. (This is because | |
# rvm overrides the `gem` command.) | |
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bash_profile | |
exec $SHELL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":"dbauser", | |
"uid":506, | |
"comment":"DBA User", | |
"shell":"/bin/bash", | |
"groups": [ | |
"sysadm", | |
"dba" | |
], | |
"ssh_key": "XXXXXXXXXX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### spec | |
let(:mock_call) { double 'Call' } | |
let(:test_extension) { 'ad57366865126e55649ecb23ae1d48887544976efea46a48eb5d85a6eeb4d306' } | |
let(:test_token) { '76f50757ad538f4e34cef18cb13b40248e68854a99a040c2c9b057d65b541402' } | |
subject do | |
#mock_call.stub(:variables) {{}} | |
CallRouterController.new mock_call | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Sat Sep 17 19:31:13 2011] Adhearsion::VoIP::Asterisk::AGI::Server::RubyServer 0.0.0.0:4573 client:57007 localhost<127.0.0.1> connect | |
DEBUG agi: Handling call with variables {:type=>"IAX2", :rdnis=>nil, :network=>true, :context=>"macro_outbound", :channel=>"IAX2/cancun_zefiro-5737", :type_of_calling_number=>:unknown, :callingani2=>0, :callerid=>5619521007, :uniqueid=>"1316287873.1570", :query=>{}, :extension=>"s", :dnid=>nil, :enhanced=>0.0, :language=>"en", :threadid=>139782285895440, :callingpres=>0, :version=>"1.6.2.5", :accountcode=>"", :calleridname=>nil, :callingtns=>0, :priority=>1, :request=>#<URI::Generic:0x7f983c125aa8 URL:agi://127.0.0.1>} | |
DEBUG agi: >>> ANSWER | |
DEBUG agi: <<< 200 result=0 | |
DEBUG agi: >>> GET VARIABLE "CALLERID(num)" | |
DEBUG agi: <<< 200 result=1 (5619521007) | |
DEBUG agi: >>> GET VARIABLE "ARG1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 United States & Canada 110341.90002524853 | |
20 Egypt 1 | |
27 South Africa 11.900000095367432 | |
34 Spain Celullar 3 | |
34 Spain 74.3999992609024 | |
39 Italy Celullar 4.599999904632568 | |
41 Switzerland 1 | |
41 Switzerland Celullar 13.699999809265137 | |
44 United Kingdom Celullar 557.7999979257584 | |
44 United Kingdom 436.29999589920044 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 United States & Canada 54885.20000863075 | |
34 Spain Celullar 21.999999523162842 | |
34 Spain 9.199999809265137 | |
41 Switzerland Celullar 27.899999618530273 | |
41 Switzerland 51.100001096725464 | |
44 United Kingdom 252.6999989748001 | |
44 United Kingdom Celullar 111.80000054836273 | |
51 Peru Celullar 115.89999985694885 | |
51 Peru 697.2999999523163 | |
54 Argentina 815.2999992370605 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[test_adhearsion] | |
exten => s,1,AGI(agi://192.168.1.64) | |
[default] | |
;include => test_adhearsion | |
exten => 999,1,GoTo(test_adhearsion|s|1) | |
exten => 999,n,Hangup | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
## manage rackspace cloud chef nodes -- w/o error handling for the time being :) | |
require 'rubygems' | |
require 'yaml' | |
require 'fog' | |
def create(name, flavor, image, key, chef_server_url) | |
image_id = image =~ /\A\d+\Z/ ? image : image_id_by_name(image) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
[globals] | |
PROTEL => SIP/8780037654 | |
[protel] | |
exten => s,1,Answer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
disallow=all | |
allow=ulaw | |
allow=alaw | |
sendrpid=yes | |
trustrpid=no | |
NewerOlder