Skip to content

Instantly share code, notes, and snippets.

@nabam
nabam / gist:e9c7766117f22e4f792f
Created September 9, 2015 19:05
vagrant-lxc bug
$ 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
### 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:
package main
import (
"fmt"
"log"
"io/ioutil"
"net/http"
)
var state = make(map[string]int)
#!/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',
<!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>
import http.server
import socketserver
import threading
import queue
import json
CALLBACK_SERVER_PORT = 5000
CALLBACK_TIMEOUT = 10 # seconds
callback_queues = {}
### 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:
#!/usr/bin/env python3
import sys
import json
events = []
device_state = {}
for line in sys.stdin:
events.append(json.loads(line))
#!/usr/bin/env python
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#