Skip to content

Instantly share code, notes, and snippets.

@jwieringa
jwieringa / Dockerfile
Created February 22, 2016 20:44 — forked from csexton/Dockerfile
Minimal Dockerfile for Alpine Linux with configurable ruby helper script
FROM alpine:3.3
MAINTAINER Christopher Sexton <chris@radiusnetworks.com>
ENV RUBY_VERSION 2.3.0
ENV RUBY_DOWNLOAD_SHA1 96e620e38af351c8da63e40cfe217ec79f912ba1
ENV BASE_PACKAGES bash curl gmp git
ENV BUILD_PACKAGES build-base libc-dev linux-headers openssl-dev postgresql-dev libxml2-dev libxslt-dev
RUN apk update && \
@jwieringa
jwieringa / gist:c1987aa61571ddae7016
Created February 17, 2016 21:06 — forked from afair/gist:3803895
PostgreSQL and Pgpool Architecture

Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer

Thanks for stopping by!

PostgreSQL and Pgpool Architecture

@jwieringa
jwieringa / notes.md
Created December 4, 2015 16:57 — forked from dbouwman/notes.md
Notes from Nodevember 2015

#Nodevember Nodes

Yahuda Keynote

  • basically a ember 101 walk-thru
  • fastboot early 2016 inc client-side re-hydration

Elijah Manor - Code Smells

  • switch statement --> strategy pattern
  • eslint allows custom plugins
  • enable/disabled rules @ file level, or block
@jwieringa
jwieringa / coreos.tf
Created November 12, 2015 14:10 — forked from bitglue/coreos.tf
Deploy a CoreOS cluster with Terraform
variable "cluster-size" {
description = "Number of CoreOS machines to deploy"
}
variable "region" {
description = "AWS region in which to deploy"
default = "us-east-1"
}
variable "coreos-ami" {
@jwieringa
jwieringa / gist:4c35a4fe9676df78afcd
Created October 30, 2015 00:39 — forked from ralph-tice/gist:3d6e5b2076cbc2900aaa
terraform for 3 AZ VPC with NAT instance with autorecovery
###########
# Variables
###########
variable "aws_key_name" {
default = "mykeypair"
}
variable "region" {
default = "eu-west-1"
}
@jwieringa
jwieringa / .gitignore
Created October 20, 2015 23:43 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@jwieringa
jwieringa / fork.js
Created September 25, 2015 21:28 — forked from kpettijohn/fork.js
nodejs fork
const
fs = require('fs'),
child_process = require('child_process');
var workers = [];
for(var i=0; i<5; i++) {
var worker = child_process.fork("lib/ExportWorker.js", [i]);
workers.push(worker);
console.log('Worker PID: ' + worker.pid);
#!/bin/bash
usage ()
{
cat <<UsageHERE
boot2docker-fwd -- Helper function to quickly manage port forwards between the boot2docker-vm and the host
Usage: boot2docker-fwd [ -n RULE_NAME ] [ -h HOST_PORT ] [ -p {tcp|udp} ] [ -i HOST_IP ] GUEST_PORT
or boot2docker-fwd -d RULE_NAME
or boot2docker-fwd -l
or boot2docker-fwd -A
@jwieringa
jwieringa / GitHub protocol comparison.md
Last active September 2, 2015 17:05
A comparison of protocols offered by GitHub (for #git on Freenode).

Primary differences between SSH and HTTPS. This post is specifically about accessing Git repositories on GitHub.

Protocols to choose from when cloning:

plain Git, aka git://github.com/

  • Does not add security beyond what Git itself provides. The server is not verified.

    If you clone a repository over git://, you should check if the latest commit's hash is correct.

worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}