Skip to content

Instantly share code, notes, and snippets.

View duo_vpn-deb.sh
#!/bin/sh
VERSION="2.3.0"
SHA="5e2d679"
BUILD="$SHA-slack2"
set -e -x
DIRNAME="$(cd "$(dirname "$0")" && pwd)"
OLDESTPWD="$PWD"
View go-list-updates
#!/usr/bin/env bash
set -u -e -o pipefail
go list -u -m -json all \
| jq -r 'if (.Indirect | not) and .Update then "\(.Path)\t\(.Version)\t\(.Update.Version)" else "" end' \
| sed -E 's/v[0-9]\.0\.0-[0-9]+-//g' \
| sed -E 's/golang.org\/x\//github.com\/golang\//g' \
| while read -r NAME A B
do
View a_test.apib
FORMAT: 1A
## Data Structures
### A
### B
### C
View godeps.zsh
#!/bin/zsh
typeset -A DONE
_dep() {
go list -f "{{if not .Standard}}{{printf \"\t%q -> %q;\n\" \"$1\" .ImportPath}}{{end}}" "$2"
}
_graph() {
if [ -z ${DONE[$1]} ]
@wadey
wadey / betagoal.py
Last active Aug 29, 2015
World Cup Slack Bot (with delay for no spoilers)
View betagoal.py
import time
import json
from twitter import TwitterStream, OAuth
import requests
import settings
twitter_stream = TwitterStream(
auth=OAuth(
View BigByteBuffer.java
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
View keybase.md

Keybase proof

I hereby claim:

  • I am wadey on github.
  • I am wadey (https://keybase.io/wadey) on keybase.
  • I have a public key whose fingerprint is 6B06 FA83 D482 D52A E59E C5F8 0B42 F7A3 E3D9 D6D7

To claim this, I am signing this object:

@wadey
wadey / Makefile
Created Dec 5, 2013
Makefile for generating Go coverage reports for Jenkins (for projects containing multiple packages)
View Makefile
GO=$(firstword $(subst :, ,$(GOPATH)))
GOCOV=$(GO)/bin/gocov
GOCOVXML=$(GO)/bin/gocov-xml
# List of pkgs for the project
PKGS=$(shell go list ./...)
# Coverage output: coverage/$PKG/coverage.out
COVPKGS=$(addsuffix /coverage.out,$(addprefix coverage/,$(PKGS)))
@wadey
wadey / bootstrap.py
Created Mar 7, 2013
findi -> postgres
View bootstrap.py
from record_location import Base, engine
msg = 'Warning! This will drop your database. Please confirm:'
shall = True if raw_input("%s (y/N) " % msg).lower() == 'y' else False
if not shall:
print "Cancelled database drop and creation..."
else:
print "Dropping and creating the database..."
Base.metadata.drop_all(engine)
@wadey
wadey / examples.java
Created Jun 6, 2012
IntelliJ Templates
View examples.java
// log4j
private static final Logger log = LogManager.getLogger($CLASS_NAME$.class);
You can’t perform that action at this time.