This file contains hidden or 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
| ... | |
| if (mBaseUrl.getProtocol().equals("https")) | |
| { | |
| UsernamePasswordCredentials credentials = | |
| new UsernamePasswordCredentials(mAuthenticationUsername, | |
| mAuthenticationPassword); | |
| mHttpClient.getState().setCredentials(AuthScope.ANY, credentials); |
This file contains hidden or 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
| def sequencer = | |
| { sequence, closure -> | |
| if (dtmfSequencerEnabled) | |
| { | |
| for (dtmf in sequence) | |
| { | |
| switch (dtmf) | |
| { | |
| case "*":say("${baseAudioUrl}/dtmf/star.wav");; | |
| case "#":say("${baseAudioUrl}/dtmf/pound.wav"); |
This file contains hidden or 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
| sequencer ("C10") | |
| { say( "Hello, and thank you for calling." ) } |
This file contains hidden or 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
| say( "Hello, and thank you for calling." ) |
This file contains hidden or 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
| sequencer ("C20") | |
| { | |
| event = prompt(text, [ | |
| repeat:3, | |
| timeout:7, | |
| choices:listOptions( contacts ), | |
| onEvent: | |
| { handlingEvent-> | |
| handlingEvent.onTimeout( { | |
| sequencer ("C21") |
This file contains hidden or 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
| event = prompt(text, [ | |
| repeat:3, | |
| timeout:7, | |
| choices:listOptions( contacts ), | |
| onEvent: | |
| { handlingEvent-> | |
| handlingEvent.onTimeout( { | |
| say( "I'm sorry, I didn't hear anything." ) | |
| } | |
| ) |
This file contains hidden or 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
| // Uses a very very simple tropo script configured for your application | |
| // See http://github.com/pdeschen/nubot-labs/raw/master/tropo/src/Sms.groovy | |
| HttpClient mHttpClient = new HttpClient(); | |
| String mBaseUrl = "http://api.tropo.com/1.0/sessions"; | |
| GetMethod method = new GetMethod(); | |
| // here we have to throttle. We can't have more then x sms/minutes. |
This file contains hidden or 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 | |
| require "cgi" | |
| cgi = CGI.new("html3") | |
| cgi.out() do | |
| ENV['REMOTE_ADDR'] | |
| end |
This file contains hidden or 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
| IP_ADDRESS=`curl http://labs.rassemblr.com/go/ip` | |
| USERNAME=<yourusername> | |
| PASSWORD=<yourpassword> | |
| HOST=<yourAhost> | |
| curl -u $USERNAME:$PASSWORD / | |
| "http://api.geoscaling.com/dns2/dynamic/?host=$HOST&content=$IP_ADDRESS" |
This file contains hidden or 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
| Listen localhost:88 | |
| <VirtualHost localhost:88> | |
| DocumentRoot /var/www/A | |
| <Directory "/var/www/A/"> | |
| ErrorDocument 404 / | |
| AddDefaultCharset UTF-8 | |
| Options FollowSymLinks MultiViews Includes | |
| AllowOverride All | |
| </Directory> | |
| </VirtualHost> |
OlderNewer