Skip to content

Instantly share code, notes, and snippets.

datacenter = "dc1"
data_dir = "/etc/nomad.d"
client {
enabled = true
server_join {
retry_join = [ "provider=gce tag_value=h3" ]
}
}
gistup
## Distributions
- [NPM](www.npmjs.com/package/leftpad (NPM))
- [CocoaPods](cocoapods.org/pods/whyisthisreal (CocoaPods))
@teeler
teeler / README.md
Created January 14, 2019 04:46
SCRIPT-8
Graphd testing
First build it:
{•̃_•̃} bazel build graphd
Then, run it:
{•̃_•̃} bazel-bin/graphd/graphd -d /tmp/some-tmp-db -y
graphd> write (name="human" value="chris"
<!-- Creator : groff version 1.19.2 -->
<!-- CreationDate: Fri Sep 14 10:51:19 2018 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
@teeler
teeler / BUILD
Created September 12, 2018 15:36
# /usr/local/google/home/rtp/github/graphd.teeler/test/unit/BUILD:2:5
sh_test(
name = "zeroguid",
data = ["//test/unit:zeroguid.sh", "//test/unit:rungraphd", "//graphd:graphd", "//util:gpush", "//test/unit:bigconf.conf", "//test/unit:cost2.broken.conf", "//test/unit:cost2.conf", "//test/unit:cost2.short.broken.conf", "//test/unit:cost2.short.conf", "//test/unit:david_1.conf", "//test/unit:david_4.conf", "//test/unit:dbname.broken.conf", "//test/unit:dbname.conf", "//test/unit:instance-id.conf", "//test/unit:logrotate.conf", "//test/unit:override-dir-1.conf", "//test/unit:override-dir-2.conf", "//test/unit:spewrequest.conf", "//test/unit:sync.conf", "//test/unit:zeroguid.out.exp"],
srcs = ["//test/unit:test.sh"],
args = ["-v", "zeroguid.sh"],
)
# /usr/local/google/home/rtp/github/graphd.teeler/test/unit/BUILD:2:5
sh_test(
@teeler
teeler / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@teeler
teeler / gist:4004711
Created November 2, 2012 22:23
color iter
# thanks @craigcitro
import collections
import itertools
RGB = collections.namedtuple('RGB', ['r', 'g', 'b'])
def rgb_to_str(rgb):
return "%02x%02x%02x" % (rgb.r, rgb.g, rgb.b)
@teeler
teeler / gist:3751961
Created September 19, 2012 20:15
Simple backbone.js handler for GAE
import json
import logging
from google.appengine.ext import db
from google.appengine.api import users
import webapp2
# With routes like:
#app = webapp2.WSGIApplication([
# webapp2.Route("/d/<collection>", DataHandler, methods=["GET", "POST"]),
# webapp2.Route("/d/<collection>/<id>", DataHandler, methods=["GET", "PUT", "DELETE"]),