Skip to content

Instantly share code, notes, and snippets.

View choppen5's full-sized avatar
💭
crushing it

Charles Oppenheimer choppen5

💭
crushing it
View GitHub Profile
//uses async function so we can... await
exports.handler = async function(context, event, callback) {
const client = context.getTwilioClient();
const taskSid = event.taskSid;
const rejectedWorkerSid = event.workerSid;
const workspaceSid = context.WORKSPACESID; //WS....
console.log("workspaceSid", workspaceSid);
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'twilio-ruby'
# put your own credentials here
account_sid = 'ACxx'
auth_token = 'xx'
# set up a client
@choppen5
choppen5 / findAppSid.js
Created March 24, 2016 18:13
Use paging with the Twilio API to cycle through all of your phone numbers. Filter the results by the app sid associated with it.
//Cycle through all phone numbers, and filter on appsid
//you can't query by Appsid via the API, so getting all numbers and iterating is the way to do it.
//Module
//npm install request async
var request = require('request');
var async = require('async');
//Twilio account variables
var sid = 'ACxxxx';
var auth = '52xxxxxx';
@choppen5
choppen5 / gist:1195628
Created September 5, 2011 18:35
carrier wave
/Users/choppen5/prizzm/vendor/bundle/ruby/1.9.1/bundler/gems/carrierwave-3850f67ce1b7/lib/carrierwave/processing/rmagick.rb:248: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.4]
-- control frame ----------
c:0136 p:---- s:0666 b:0666 l:000665 d:000665 CFUNC :read
c:0135 p:0054 s:0662 b:0662 l:000661 d:000661 METHOD /Users/choppen5/prizzm/vendor/bundle/ruby/1.9.1/bundler/gems/carrierwave-3850f67ce1b7/lib/carrierwave/processing/rmagick.rb:248
c:0134 p:0029 s:0653 b:0653 l:000652 d:000652 METHOD /Users/choppen5/prizzm/vendor/bundle/ruby/1.9.1/bundler/gems/carrierwave-3850f67ce1b7/lib/carrierwave/processing/rmagick.rb:210
c:0133 p:0044 s:0646 b:0646 l:000635 d:000645 BLOCK /Users/choppen5/prizzm/vendor/bundle/ruby/1.9.1/bundler/gems/carrierwave-3850f67ce1b7/lib/carrierwave/uploader/processing.rb:83
c:0132 p:---- s:0641 b:0641 l:000640 d:000640 FINISH
c:0131 p:---- s:0639 b:0639 l:000638 d:000638 CFUNC :each