Skip to content

Instantly share code, notes, and snippets.

View bbangert's full-sized avatar
🦊
Numb Numb

Ben Bangert bbangert

🦊
Numb Numb
View GitHub Profile
@bbangert
bbangert / tasks.json
Created September 29, 2019 21:29
event broker tasks
{
"version": "2.0.0",
"tasks": [
{
"label": "tsc-watch",
"command": "npm",
"args": ["run", "watch"],
"type": "shell",
"isBackground": true,
"group": "build",
apiVersion: apps/v1
kind: Deployment
metadata:
name: unifi-video-deployment
spec:
replicas: 1
selector:
matchLabels:
app: unifi-video
template:
apiVersion: apps/v1
kind: Deployment
metadata:
name: unifi-controller-deployment
spec:
replicas: 1
selector:
matchLabels:
app: unifi-controller
template:
First, checkout the code:
$ git clone https://github.com/mozilla-services/autopush.git
$ git clone https://github.com/mozilla-services/simplepush_test.git
Setup the tester (assumes virtualenv is on the path):
$ cd simplepush_test
(simplepush_test/) $ make
Setup the autopush app:
@bbangert
bbangert / dashboard.json
Created November 14, 2014 00:02
pushgo grafana dashboard json
{
"id": null,
"title": "Grafana",
"originalTitle": "Grafana",
"tags": [],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"rows": [
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Main
(
main
) where
import Control.Concurrent
import qualified Control.Exception as E
Configuring hashable-1.2.2.0...
Building hashable-1.2.2.0...
Preprocessing library hashable-1.2.2.0...
[1 of 3] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/dist-sandbox-921acbd0/build/Data/Hashable/Class.o )
Data/Hashable/Class.hs:201:11: Warning:
In the use of ‘bitSize’ (imported from Data.Bits):
Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead"
Data/Hashable/Class.hs:224:11: Warning:
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module Main
(
main
) where
import Conduit
@bbangert
bbangert / gist:2200435
Created March 25, 2012 22:32
multiple view_configs
@view_config(context=Page, name="edit", route_name="pages", permission="admin")
@view_config(context=Page, name="edit", route_name="pages_by_url", permission="admin")
def view_page_edit(context, request):
return Response("edit '%s'" % context.title)
# would be nice if...
@view_config(context=Page, name="edit", route_name="*", permission="admin")
def view_page_edit(context, request):
return Response("edit '%s'" % context.title)
@bbangert
bbangert / fiddle.css
Created October 10, 2011 04:53 — forked from paulrouget/fiddle.css
Firefox HTML Tree Panel
html {
background-color: -moz-dialog;
}
body {
margin: 0;
overflow: auto;
font-family: Lucida Grande, sans-serif;
font-size: 11px;
border-top: 1px solid #BBB9BA;