Skip to content

Instantly share code, notes, and snippets.

gdb / Sample gist
Created Apr 27, 2016
Sample gist
View Sample gist
This is a sample gist! Nothing too interesting to see here.
# Download the Google safe_format_and_mount script to the location
# Kubernetes expects it to be on disk (/usr/share/google/...). This is
# made tricky by the fact that CoreOS doesn't want anyone writing to
# /usr.
set -ex
# Imported from
View gist:443fc83387157ad17294
$ curl -u $STRIPE_API_KEY: -d plan=monthly
"error": {
"type": "invalid_request_error",
"message": "This customer has no attached card"
$ curl -u $STRIPE_API_KEY: -d plan=monthly -d trial_end=1421427622
"object": "customer",
gdb / gist:70efc16fb432601acd33
Last active Oct 13, 2018
Notes from Stellar dev meetup
View gist:70efc16fb432601acd33
View gist:fa637594db21fb095f41
Please publicly post the following Gist, and name it
### Keybase proof
I hereby claim:
* I am gdb on github.
* I am gdb ( on keybase.
* I have a public key whose fingerprint is CA8F 367F 55F0 F4F7 92E3 7AED 29AD 1AE9 45D0 92BC
gdb / gist:853c333748bbe51f5bd4
Last active Aug 29, 2015
Issuing your own "currency" using Stellar's distributed exchange
View gist:853c333748bbe51f5bd4

One interesting thing you can do with Stellar is issue your own custom "currency". Here's a simple example of doing so. This route involves making an offer on the distributed exchange, and then waiting for someone to make an overlapping counteroffer.

I've created an offer giving out minutes of my help on a project of your choice (represented by the currency GDB), at a rate of 1,000 stellar per minute. You can see this offer in the graphical account viewer:

(This credit is redeemable for things like architecture advice, conversations about cryptocurrencies, debugging help, or the like. Once you hold the credit, you can redeem it by contacting me, and we'll arrange a Hangout or in-person meeting, depending on what makes sense.)

Did you just claim the currency GDB?!

Not quite. Stellar works a bit off the principle "Is the blue you see, the same blue I see?" If someone trusts a bunch of gateways for USD, if effectively means that they per

gdb / gist:1255035
Created Sep 30, 2011
Stripe PHP simple example
View gist:1255035
require 'path-to-Stripe.php';
if ($_POST) {
Stripe_Charge::create(array("amount" => 1000,
"currency" => "usd",
"card" => $_POST['stripeToken']));
You can’t perform that action at this time.