Skip to content

Instantly share code, notes, and snippets.

View SEJeff's full-sized avatar

Jeff Schroeder SEJeff

View GitHub Profile
domain (ip ip6) {
table filter {
chain INPUT {
policy DROP;
# connection tracking
mod state state INVALID DROP;
mod state state (ESTABLISHED RELATED) ACCEPT;
# allow local packet
#!/bin/sh
#
# For each ref, validate the commit.
#
# - It disallows deleting branches without a /.
# - It disallows non fast-forward on branches without a /.
# - It disallows deleting tags without a /.
# - It disallows unannotated tags to be pushed.
@SEJeff
SEJeff / pillar-data
Created November 30, 2012 15:27
Alternate Pip install of Diamond
message_do_not_modify: Do not edit this file, this is handled by Salt
graphite_address: 127.0.0.1
@SEJeff
SEJeff / the-case-for-go.txt
Created September 20, 2012 00:33
The case for Go #golang
Go at Heroku
http://blog.golang.org/2011/04/go-at-heroku.html
Rob Pike on how Go fits into today's computing environment
http://radar.oreilly.com/2012/09/golang.html
Why you PHP guys should learn Golang
http://www.mikespook.com/2012/08/why-you-php-guys-should-learn-golang/
Why I went from python to go and not node js
@SEJeff
SEJeff / latency.txt
Created September 13, 2012 18:42 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
@SEJeff
SEJeff / gist:3252367
Created August 3, 2012 22:56 — forked from avimar/gist:3092732
install node.js from source with salt
nodejs-deps:
pkg.installed:
- names:
- g++
- curl
- libssl-dev
- apache2-utils
require:
- pkg: git
postgresql-install:
pkg.installed:
- names:
- postgresql-8.4
- postgresql-server-dev-8.4
- postgresql-client-8.4
- postgresql-client-common
- postgresql-common
main:
Host github.com
User git
HostName github.com
StrictHostKeyChecking no
IdentityFile /root/.ssh/github
@SEJeff
SEJeff / gist:2777798
Created May 23, 2012 21:00 — forked from thatch45/gist:2484144
many state decs, one id dec
fred:
group:
- present
- gid: 2000
user:
- present
- uid: 2000
- gid: 2000
- require:
- group: fred
@SEJeff
SEJeff / gist:2769055
Created May 22, 2012 13:29 — forked from kadel/gist:2768868
Salt watch statement and requires example
ganglia-monitor:
pkg:
- installed
service:
- running
# Since the service name is ganglia-monitor and the daemon binary is gmond
- sig: '^gmond'
- watch:
- file: /etc/ganglia/gmond.conf
- pkg: ganglia-monitor