This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message_do_not_modify: Do not edit this file, this is handled by Salt | |
graphite_address: 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodejs-deps: | |
pkg.installed: | |
- names: | |
- g++ | |
- curl | |
- libssl-dev | |
- apache2-utils | |
require: | |
- pkg: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
postgresql-install: | |
pkg.installed: | |
- names: | |
- postgresql-8.4 | |
- postgresql-server-dev-8.4 | |
- postgresql-client-8.4 | |
- postgresql-client-common | |
- postgresql-common | |
main: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host github.com | |
User git | |
HostName github.com | |
StrictHostKeyChecking no | |
IdentityFile /root/.ssh/github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fred: | |
group: | |
- present | |
- gid: 2000 | |
user: | |
- present | |
- uid: 2000 | |
- gid: 2000 | |
- require: | |
- group: fred |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |