Skip to content

Instantly share code, notes, and snippets.

View dwilkie's full-sized avatar

David Wilkie dwilkie

View GitHub Profile
@dwilkie
dwilkie / gist:6256234
Last active December 21, 2015 05:19
Adhearsion-Twilio

Adhearsion-Twilio

Adhearsion-Twilio is an Adhearsion Plugin, which allows you to quickly migrate an existing app built on Twilio over to an Adhearsion app, or create a new Adhearsion app from scratch without having to worry too much about how Adhearsion works.

Use Case - Chibi

Chibi is a Mobile Dating and Chat Service based in Cambodia that connects it's subscribers with new friends via SMS and Voice. Subscribers can SMS or call to a local phone number and be instantly and anonymously connected with a new friend in their area. There's no need for registration or payment. Registration is done automatically when the subscriber calls or SMS's for the first time and the subscribers profile is built up overtime by automatic analysis of SMS and voice data from the subscriber.

Bootstrap with Twilio

@dwilkie
dwilkie / wing_money_api_curl_examples.md
Last active August 29, 2015 14:06
WingMoney API CURL Examples

WingMoney API CURL Examples

The WingMoney API can be used to execute transactions through Wing. Here are some CURL examples. Note that these examples actually work so feel free to try them. For examples in Ruby, see the wing-money-ruby gem.

Transaction Types

WingToWing

WingToWing Transactions can be created to send funds from one Wing Account to another.

@dwilkie
dwilkie / bongloy_api_reference.md
Last active August 29, 2015 14:06
Bongloy API Reference

Bongloy API Reference

The Bongloy API is organized around REST. To make the Bongloy API as explorable as possible, accounts have test-mode API keys as well as live-mode API keys. These keys can be active at the same time. Data created with test-mode credentials will never result in live charges and will never cost anyone money.

Authentication

You authenticate to the Bongloy API by providing one of your API keys in the request. You can manage your API keys from your account. You can have multiple API keys active at one time. Your API keys carry many privileges, so be sure to keep them secret!

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. You must authenticate for all requests.

@dwilkie
dwilkie / makehub
Last active August 29, 2015 14:13 — forked from ahmedabdulaziz/makehub
AIR QUALITY STATION
# Title
AIR QUALITY STATION
# Picture
media: http://s27.postimg.org/n9159lwpf/1604581_626258354094217_2010345751_n.jpg
# Objective
the main Objective of this project is to measure pollution percentage in the air specially carbon monoxide in cities and for industrial applications. we tend to make it like as a distributed stations around the world to make a map for the pollution in the world.
# Duration
3 days
# Age Group
all
@dwilkie
dwilkie / ubuntu_unattended_upgrades_gmail.markdown
Created July 2, 2015 10:28
Setup unattended upgrades on Ubuntu with Gmail

Install the unattended-upgrades package

$ sudo apt-get install unattended-upgrades 

Edit the periodic configuration

$ sudo nano /etc/apt/apt.conf.d/10periodic
@dwilkie
dwilkie / docker-cheat-sheat.md
Last active May 12, 2024 14:08
Docker Cheat Sheet

Build docker image

$ cd /path/to/Dockerfile
$ sudo docker build .

View running processes

@dwilkie
dwilkie / testtwiml.xml
Last active July 18, 2017 11:20
Twimlbin
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Record/>
</Response>
<form action="" method="POST">
<script
src="https://js.bongloy.com/assets/checkout.js" class="bongloy-button"
data-key="pk_test_2411c55a75ad6d004eaaf240f99b577dec6d6630789c06a23639967ae3c10572"
data-image="http://www.mcwade.com/DesignTalk/wp-content/uploads/2009/02/cokeredcircle.jpg"
data-name="Coca-Cola Cambodia"
data-description="Invoice ($235.00)"
data-label="Pay Coca-Cola Invoice"
data-amount="23500">
</script>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Gather action='https://requestb.in/15x8rjs1' timeout='60'>
<Say>Please press 1 or say sales for sales.</Say>
</Gather>
</Response>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Please record your message after the tone</Say>
<Record action="https://requestb.in/1m351lo1" recordingStatusCallback="https://requestb.in/ysgqk6ys"/>
</Response>