Skip to content

Instantly share code, notes, and snippets.

View HelloGrayson's full-sized avatar
💭
I may be slow to respond.

Grayson HelloGrayson

💭
I may be slow to respond.
View GitHub Profile
### Keybase proof
I hereby claim:
* I am unhashable on github.
* I am unhashable (https://keybase.io/unhashable) on keybase.
* I have a public key ASBPKXgs1lDpr_7dtDVavVsXN0gkWNrhj6SPoxFVaDFsHAo
To claim this, I am signing this object:
### 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:
consul:
image: progrium/consul
name: consul
ports:
- "8500:8500"
- "53:53/udp"
command: -server -bootstrap -ui-dir /ui
registrator:
image: progrium/registrator
@HelloGrayson
HelloGrayson / hyperbahn_sample.py
Created August 7, 2015 20:27
Do we want to pull Hyperbahn specific logic into it's own client like Node & Go?
from tchannel import TChannel, Hyperbahn
tchannel = TChannel('my-service')
tchannel.listen() # or
hyperbahn = Hyperbahn(tchannel)
hyperbahn.advertise()
@HelloGrayson
HelloGrayson / gist:ca4f6b9c17861327aa8a
Last active June 27, 2024 15:55
tchannel .call api change
# raw
response = yield tchannel.call(
argscheme="raw",
service="someservice",
endpoint="something",
body="RAWRESPONSE",
headers={
'X-Source': 'geo'
},
ttl=1000
@HelloGrayson
HelloGrayson / gist:202619df841c0ccdab73
Last active August 29, 2015 14:22
Golang concurrency challenge: make this program finish in 1 second instead of 3.
package main
import (
"time"
"fmt"
)
//
// Challenge: modify readAllFromOrgs so that the program finishes
// in 1 second instead of 3.
@HelloGrayson
HelloGrayson / fig.yml
Last active August 29, 2015 14:06
Run Mesos on Docker with Fig!
# This has since been improved and moved to: https://github.com/breerly/fig-mesos
# Cheers :)