This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
consul: | |
image: progrium/consul | |
name: consul | |
ports: | |
- "8500:8500" | |
- "53:53/udp" | |
command: -server -bootstrap -ui-dir /ui | |
registrator: | |
image: progrium/registrator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tchannel import TChannel, Hyperbahn | |
tchannel = TChannel('my-service') | |
tchannel.listen() # or | |
hyperbahn = Hyperbahn(tchannel) | |
hyperbahn.advertise() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# raw | |
response = yield tchannel.call( | |
argscheme="raw", | |
service="someservice", | |
endpoint="something", | |
body="RAWRESPONSE", | |
headers={ | |
'X-Source': 'geo' | |
}, | |
ttl=1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"time" | |
"fmt" | |
) | |
// | |
// Challenge: modify readAllFromOrgs so that the program finishes | |
// in 1 second instead of 3. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This has since been improved and moved to: https://github.com/breerly/fig-mesos | |
# Cheers :) |