Skip to content

Instantly share code, notes, and snippets.

View cachrisman's full-sized avatar

Charlie Chrisman cachrisman

View GitHub Profile
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
Placing Outbound Call
Thu May 05 2016 15:38:02 GMT-0700 (PDT)
-----------------
{ answer_method: 'GET',
answer_url: 'http://example.com/forward/?param1=SOMETHING&param2=SOMETHINGELSE',
from: '16288881600',
hangup_url: 'http://example.com/hangup-a/?param1=SOMETHING&param2=SOMETHINGELSE',
to: '14159938809' }
API Response:
@cachrisman
cachrisman / pretty-exception.rb
Created May 12, 2016 21:21 — forked from mikepfirrmann/pretty-exception.rb
Print a prettier stack trace for Ruby exceptions
def colorize(text, color_code)
"\e[#{color_code}m#{text}\e[0m"
end
begin
# Here be dangerous things.
rescue => e
print "\r" << (' ' * 50) << "\n"
stacktrace = e.backtrace.map do |call|
if parts = call.match(/^(?<file>.+):(?<line>\d+):in `(?<code>.*)'$/)
<?xml version="1.0" encoding="utf-8" ?>
<Response>
<Play>
https://media-24x8-com.s3.amazonaws.com/system/vmgreet.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=0NQC1NGH8V112NSN0B02%2F20160523%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20160523T220617Z&amp;X-Amz-Expires=432000&amp;X-Amz-SignedHeaders=host&amp;X-Amz-Signature=65d0597a01b29f75dcfd97790ed8a375a5089a63e9df6e70eb02e5a4f295f530
</Play>
</Response>
<Response>
<Speak language="es-ES" voice="WOMAN">Ust&eacute;d ser&aacute; a&ntilde;adido a una llamada de conferencia creada por EMNS pro</Speak>
</Response>
8889180829
8885768433
8885768470
8885768531
8885768557
8885768561
8885768568
8885768573
8885768584
{"blame":[],"app_name":"FileProvider","timestamp":"2017-03-21 10:50:43.96 -0700","app_version":"4.2017.05216","slice_uuid":"5736df9e-6107-38f3-a4d7-c51e7da0c257","adam_id":507874739,"build_version":"4.2017.05216","bundleID":"com.google.Drive.FileProviderExtension","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.2 (14C92)","incident_id":"1022C83F-8C04-47C7-9C9D-3491969A4AD0","name":"FileProvider","symbolicated":true}
Incident Identifier: 1022C83F-8C04-47C7-9C9D-3491969A4AD0
CrashReporter Key: 5f697fa4d9cb662c87d0c5685bfc1281e79cd1df
Hardware Model: iPhone8,2
Process: FileProvider [832]
Path: /private/var/containers/Bundle/Application/37C1CC1B-1585-4C7B-8FDF-ACF4122C2CA6/Drive.app/PlugIns/FileProvider.appex/FileProvider
Identifier: com.google.Drive.FileProviderExtension
Version: 4.2017.05216 (4.2017.05216)
Code Type: ARM-64 (Native)
Role: Unspecified
{"blame":[],"app_name":"bose-connect-ios","timestamp":"2017-03-30 15:08:00.64 -0700","app_version":"3.1","slice_uuid":"a924cfb8-b957-3de9-bc8a-f7555e592515","adam_id":1046510029,"build_version":"5","bundleID":"com.bose.boseconnect","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.2 (14C92)","incident_id":"56AEB31E-C345-47AB-A791-B0316CE34449","name":"bose-connect-ios","symbolicated":true}
Incident Identifier: 56AEB31E-C345-47AB-A791-B0316CE34449
CrashReporter Key: 5f697fa4d9cb662c87d0c5685bfc1281e79cd1df
Hardware Model: iPhone8,2
Process: bose-connect-ios [17732]
Path: /private/var/containers/Bundle/Application/231E1208-4CB7-4023-97CD-01DC5396AEE1/bose-connect-ios.app/bose-connect-ios
Identifier: com.bose.boseconnect
Version: 5 (3.1)
Code Type: ARM-64 (Native)
Role: Foreground
/**
* function to be triggered by a Contentful webhook if changes are applied to
* an Entry through Contentful's management API.
*
* Event flow:
*
* 1. Parse the incoming data and headers from Contentful
* 2. Use Contentful's management API to resolve a user id to a user name
* 3. Format a message compatible with Slack's incoming webhooks
* 4. Post to Slack
/**
* function to be triggered by a Contentful webhook if changes are applied to
* an Entry through Contentful's management API.
*
* Event flow:
*
* 1. Parse the incoming data and headers from Contentful
* 2. Use Contentful's management API to resolve a user id to a user name
* 3. Format a message compatible with Slack's incoming webhooks
* 4. Post to Slack