I hereby claim:
- I am stantonk on github.
- I am stantonk (https://keybase.io/stantonk) on keybase.
- I have a public key whose fingerprint is 21AE 63EF 74EC 1D5D C904 98A8 1538 E2F1 20F5 28F9
To claim this, I am signing this object:
| FROM ubuntu:16.04 | |
| # Install Java8 | |
| # Presumes you have downloaded / accepted the license file from Oracle's website. | |
| # https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps | |
| RUN mkdir /opt/jdk | |
| COPY ./jdk-8u112-linux-x64.tar.gz /tmp/ | |
| RUN tar -zxvf /tmp/jdk-8u112-linux-x64.tar.gz -C /opt/jdk | |
| RUN update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_112/bin/java 100 | |
| RUN update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_112/bin/javac 100 |
| import json | |
| import logging | |
| import requests | |
| import sys | |
| from collections import namedtuple | |
| from functools import partial | |
| from urlparse import urlparse | |
| from urlparse import parse_qs |
| Homebrew build logs for mysql@5.5 on macOS 10.11.6 | |
| Build date: 2017-01-26 14:33:42 |
| #!/usr/bin/env bash | |
| ################################################################################ | |
| # Use as a global mercurial/git pre commit or pre push hook to detect the type | |
| # of project and run unittests before allowing a commit or push to a remote | |
| # repository. | |
| # | |
| # Handy so that you don't have to remember to add test running hooks to every | |
| # repo clone/fork you have. | |
| ################################################################################ | |
| echo "run-test-hooks executing..." |
| // see: | |
| // http://jdbi.org/fluent_queries/ | |
| // http://www.jooq.org/doc/3.7/manual/getting-started/use-cases/jooq-as-a-standalone-sql-builder/ | |
| // Your Java Bean | |
| public static class Reminder { | |
| private long id; | |
| private long customerId; | |
| public Reminder(long id, long customerId) { |
| import re | |
| import sys | |
| # note, currently doesn't handle: | |
| # Jun 29 00:00:03 host tag: message repeated 3 times: [ 192.168.1.1 - - "POST /api/someendpoint/ | |
| r = re.compile(r'(\w{3,}\s+\d{2,}\s+\d{2,}:\d{2,}:\d{2,})\s+([\w-]+)\s+([\w-]+):\s+((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3},?\s?)+)\s+-\s+-\s+\"(GET|POST|PUT|PATCH|HEAD|DELETE) ((\/[\w_]+)+)\/\??(.*) HTTP\/\d\.\d" (\d{3,}) (\d+|-)') | |
| anonymizers = ( | |
| (re.compile(r'(\d+,?)+'), 'id'), # one or more optionally csv separated ids |
I hereby claim:
To claim this, I am signing this object:
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" |
| #!/usr/bin/env python | |
| """ | |
| Note: requires numpy. `sudo pip install numpy` | |
| Example: | |
| $ echo -e "1\n2\n5\n10\n20\n" | get-stats | |
| mean=7.6 | |
| median=5.0 | |
| std=6.94550214167 |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |