I hereby claim:
- I am bitmage on github.
- I am bitmason (https://keybase.io/bitmason) on keybase.
- I have a public key ASCYM6PGtXUuJl8TSG1l8nrfAk3P9VIhVvb3FhAKO5HJNAo To claim this, I am signing this object:
{
"body": {
"key": {| #!/bin/bash | |
| shopt -s globstar | |
| for repo in ./**/.git; do | |
| dir=`dirname "$repo"` | |
| printf "$dir:\n" | |
| export GIT_DIR="$repo" | |
| export GIT_WORK_TREE="$dir" | |
| git log --branches --not --remotes --simplify-by-decoration --decorate --oneline | |
| git status --short |
I hereby claim:
{
"body": {
"key": {| const {EventEmitter} = require('events') | |
| // initialization | |
| const ee = new EventEmitter() | |
| ee.isReady = false | |
| ee.on('ready', function() {ee.isReady = true}) | |
| ee.onReady = function(cb) { | |
| if (this.isReady) { | |
| // call immediately | |
| cb() |
| ~/projects/oss/nanomsg/examples((HEAD detached at 1.1.0)) $ ./out/zdb barrel tcp://127.0.0.1:5555 'hello' | |
| BARREL: SENDING "hello" | |
| BARREL: SENDING "hello" | |
| BARREL: SENDING "hello" | |
| BARREL: SENDING "hello" | |
| BARREL: SENDING "hello" | |
| ZDB: RECEIVED "hello" | |
| ZDB: RECEIVED "hello" | |
| ZDB: RECEIVED "hello" | |
| ZDB: RECEIVED "hello" |
| ~/projects/oss/nanomsg/examples((HEAD detached at 1.1.0)) $ ./out/pipeline node1 ipc:///tmp/pipeline.ipc "Hello, World\!" | |
| NODE1: SENDING "Hello, World\!" | |
| NODE0: RECEIVED "Hello, World\!" | |
| ~/projects/oss/nanomsg/examples((HEAD detached at 1.1.0)) $ ./out/pipeline node1 ipc:///tmp/pipeline.ipc "Hello, World\!" | |
| NODE1: SENDING "Hello, World\!" | |
| ~/projects/oss/nanomsg/examples((HEAD detached at 1.1.0)) $ ./out/pipeline node1 ipc:///tmp/pipeline.ipc "Hello, World\!" | |
| NODE1: SENDING "Hello, World\!" | |
| NODE0: RECEIVED "Hello, World\!" | |
| ~/projects/oss/nanomsg/examples((HEAD detached at 1.1.0)) $ ./out/pipeline node1 ipc:///tmp/pipeline.ipc "Hello, World\!" | |
| NODE1: SENDING "Hello, World\!" |
| Yay, cURL! |
| --- | |
| kind: Deployment | |
| apiVersion: extensions/v1beta1 | |
| metadata: | |
| name: proxy | |
| spec: | |
| replicas: 1 | |
| template: | |
| metadata: | |
| name: proxy |
| --- | |
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: proxy-service | |
| spec: | |
| type: LoadBalancer | |
| loadBalancerIP: 99.100.101.102 | |
| selector: | |
| app: proxy |
| #!/bin/sh | |
| perl -pe 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : die("Missing env variable: $1")/eg' \ | |
| < /src/proxy-redirect.conf >/etc/nginx/conf.d/nginx.conf \ | |
| && nginx -g 'daemon off;' |
| import Base.== | |
| import Base.convert | |
| sources = Set([:given, :self, :old, :neighbor]) | |
| immutable Source | |
| s | |
| Source(s) = in(s, sources) ? new(s) : error("Invalid source: $(s). Valid options are: $(sources)") | |
| end | |
| ==(l::Source, r::Source) = l.s == r.s |