Skip to content

Instantly share code, notes, and snippets.

Greg Brockman gdb

Block or report user

Report or block gdb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gdb
gdb / Sample gist
Created Apr 27, 2016
Sample gist
View Sample gist
This is a sample gist! Nothing too interesting to see here.
@gdb
gdb / gist:70efc16fb432601acd33
Last active Oct 13, 2018
Notes from Stellar dev meetup
View gist:70efc16fb432601acd33
@gdb
gdb / gist:1255035
Created Sep 30, 2011
Stripe PHP simple example
View gist:1255035
<?php
require 'path-to-Stripe.php';
if ($_POST) {
Stripe::setApiKey("your-api-key");
Stripe_Charge::create(array("amount" => 1000,
"currency" => "usd",
"card" => $_POST['stripeToken']));
}
View install-google-safe-format-and-mount.sh
#!/bin/sh
# 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 https://chromium.googlesource.com/chromiumos/platform/crosutils/+/ea621903e927acf77889bcda4fa71636f4af7158/common.sh#458
View gist:443fc83387157ad17294
$ curl -u $STRIPE_API_KEY: https://api.stripe.com/v1/customers -d plan=monthly
{
"error": {
"type": "invalid_request_error",
"message": "This customer has no attached card"
}
}
$ curl -u $STRIPE_API_KEY: https://api.stripe.com/v1/customers -d plan=monthly -d trial_end=1421427622
{
"object": "customer",
View gist:fa637594db21fb095f41
Please publicly post the following Gist, and name it keybase.md:
### Keybase proof
I hereby claim:
* I am gdb on github.
* I am gdb (https://keybase.io/gdb) on keybase.
* I have a public key whose fingerprint is CA8F 367F 55F0 F4F7 92E3 7AED 29AD 1AE9 45D0 92BC
@gdb
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: https://www.stellar.org/viewer/#/gdb.

(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

You can’t perform that action at this time.