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
$ vagrant up | |
Bringing machine 'default' up with 'lxc' provider... | |
default: The Berkshelf shelf is at "/home/vagrant/.berkshelf/vagrant-berkshelf/shelves/berkshelf20150909-7053-wc5607-default" | |
==> default: Sharing cookbooks with VM | |
==> default: Box 'fgrehm/trusty64-lxc' could not be found. Attempting to find and install... | |
default: Box Provider: lxc | |
default: Box Version: 1.2.0 | |
==> default: Loading metadata for box 'fgrehm/trusty64-lxc' | |
default: URL: https://atlas.hashicorp.com/fgrehm/trusty64-lxc | |
==> default: Adding box 'fgrehm/trusty64-lxc' (v1.2.0) for provider: lxc |
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 nabam on github. | |
* I am nabam (https://keybase.io/nabam) on keybase. | |
* I have a public key whose fingerprint is F7C7 A6B5 DAFF E84C 2DD9 B278 DA3D F0BA 5F4B D76F | |
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
.terminator-terminal-window .notebook tab { | |
background-color: #222; | |
padding: 0.2em; | |
border: 0; | |
border-color: #444; | |
border-style: solid; | |
border-width: 1px; | |
} | |
.terminator-terminal-window .notebook tab:active { |
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
.terminator-terminal-window notebook tab { | |
background-color: #222; | |
padding: 0.2em; | |
border: 0; | |
border-color: #444; | |
border-style: solid; | |
border-width: 1px; | |
} | |
.terminator-terminal-window notebook tab:checked { |
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 ( | |
"fmt" | |
"log" | |
"io/ioutil" | |
"net/http" | |
) | |
var state = make(map[string]int) |
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
#!/bin/env python3 | |
import yaml | |
import sys | |
import argparse | |
import re | |
swagger = yaml.load(sys.stdin.read(), Loader=yaml.SafeLoader) | |
http_api_spec = { | |
'apiVersion': 'config.istio.io/v1alpha2', |
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
<!DOCTYPE html> | |
<html lang=en> | |
<head> | |
<title>Swagger UI</title> | |
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@3/swagger-ui.css"> | |
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script> | |
</head> | |
<body> | |
<div class="swagger-ui" id="swagger-ui"></div> | |
<script> |
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
import http.server | |
import socketserver | |
import threading | |
import queue | |
import json | |
CALLBACK_SERVER_PORT = 5000 | |
CALLBACK_TIMEOUT = 10 # seconds | |
callback_queues = {} |
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 nabam on github. | |
* I am nabam (https://keybase.io/nabam) on keybase. | |
* I have a public key ASCIiynDeyWEPdmKHeoU8ehWmjRei4L_Qjw-JmMQQmiKrwo | |
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
#!/usr/bin/env python3 | |
import sys | |
import json | |
events = [] | |
device_state = {} | |
for line in sys.stdin: | |
events.append(json.loads(line)) |
OlderNewer