Skip to content

Instantly share code, notes, and snippets.

View tjlytle's full-sized avatar

Tim Lytle tjlytle

View GitHub Profile
@tjlytle
tjlytle / gist:3762281
Created September 21, 2012 15:51
The Fake Tim List

Contractor profiles found online that are copied from mine.

Complete Copies

(more than half, if not all the profile)

oDesk

@tjlytle
tjlytle / Mines.txt
Created December 28, 2012 19:27
Sample Test Cases for 12TDDs Day 3 (Mine Field).
*...
..*.
....
*211
12*1
0111
.....
.***.
@tjlytle
tjlytle / reportProblem.php
Last active December 22, 2015 23:09
Fix for PHP oAuthProvider::reportProblem()
<?php
$headers = OAuthProvider::reportProblem($e, false);
if(strpos($headers, 'debug_sbs') !== false){
$parts = explode('&', $headers, 2);
array_walk($parts, function(&$value){
$value = str_replace('&', '%26', $value);
});
$headers = implode('&', $parts);
}

Keybase proof

I hereby claim:

  • I am tjlytle on github.
  • I am tjlytle (https://keybase.io/tjlytle) on keybase.
  • I have a public key whose fingerprint is 4528 9D2B 44BC AA0F 7CED 015C 90B6 D853 41E8 9EB8

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
<catch event="connection.disconnect.hangup" >
<assign name="duration" expr="recording$.duration" />
<submit next="http://requestb.in/vynl0avy" method="post" namelist="recording duration" enctype="multipart/form-data"/>
<exit />
</catch>
<form>
<record name="recording" dtmfterm="true" maxtime="100s">
<filled>
<vxml version = "2.1" >
<form>
<field name="department">
<prompt>Please say sale or support. </prompt>
<grammar mode="voice" root="top">
<rule id="top">
<one-of>
<item>sales</item>
<item>support</item>
</one-of>
<?php
use Zend\ServiceManager\AbstractFactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class ClientFactory implements AbstractFactoryInterface
{
protected $services = [
'Nexmo\Sms',
'Nexmo\Voice',
'Nexmo\Developer',
@tjlytle
tjlytle / README.md
Last active September 30, 2016 01:24

LaraconUS 'Advice' Demo

If you want to troll your friends with this, here you go. Caution, if [used in a live demo][1], [may][2] [have][3] [unexpected][4] [results][5].

Super Importaint Note: The get() method used here is basically a prototype, so it certianly may change. /warning

App Setup

Add this to composer.json, to bring in both the Nexmo client and Laravel package as their currently in beta:

if(!process.argv[2]){
console.log('must pass a spec to edit');
process.exit();
}
require("swagger-editor/package.json"); // swagger-editor is a peer dependency.
var editor = require("swagger-editor-server");
editor.edit(process.argv[2], process.argv[3]);
@tjlytle
tjlytle / example.conf
Created March 13, 2017 16:30
Routing /api in nginx
location /api/ {
alias /;
fastcgi_pass api:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /path/to/public/index.php;
fastcgi_param REQUEST_URI $request_filename;
}