Skip to content

Instantly share code, notes, and snippets.

Grayson Koonce breerly

View GitHub Profile
View gist:68f3cf5738aa6268e2da
### Keybase proof
I hereby claim:
* I am breerly on github.
* I am breerly (https://keybase.io/breerly) on keybase.
* I have a public key whose fingerprint is 4029 B9B2 ACB3 B35C 5458 A079 0495 758B E3B0 F599
To claim this, I am signing this object:
View docker-compose.yml
consul:
image: progrium/consul
name: consul
ports:
- "8500:8500"
- "53:53/udp"
command: -server -bootstrap -ui-dir /ui
registrator:
image: progrium/registrator
@breerly
breerly / hyperbahn_sample.py
Created Aug 7, 2015
Do we want to pull Hyperbahn specific logic into it's own client like Node & Go?
View hyperbahn_sample.py
from tchannel import TChannel, Hyperbahn
tchannel = TChannel('my-service')
tchannel.listen() # or
hyperbahn = Hyperbahn(tchannel)
hyperbahn.advertise()
@breerly
breerly / gist:ca4f6b9c17861327aa8a
Last active Aug 29, 2015
tchannel .call api change
View gist:ca4f6b9c17861327aa8a
# raw
response = yield tchannel.call(
argscheme="raw",
service="someservice",
endpoint="something",
body="RAWRESPONSE",
headers={
'X-Source': 'geo'
},
ttl=1000
@breerly
breerly / gist:202619df841c0ccdab73
Last active Aug 29, 2015
Golang concurrency challenge: make this program finish in 1 second instead of 3.
View gist:202619df841c0ccdab73
package main
import (
"time"
"fmt"
)
//
// Challenge: modify readAllFromOrgs so that the program finishes
// in 1 second instead of 3.
@breerly
breerly / fig.yml
Last active Aug 29, 2015
Run Mesos on Docker with Fig!
View fig.yml
# This has since been improved and moved to: https://github.com/breerly/fig-mesos
# Cheers :)
You can’t perform that action at this time.