This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| 'pkg_repo.epel': | |
| pkg.installed: | |
| - name: 'epel-release' | |
| - sources: | |
| - 'epel-release': 'http://fedora-epel.mirror.lstn.net/6/i386/epel-release-6-7.noarch.rpm' |
This file contains hidden or 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
| mysql_dirs: | |
| file: | |
| - directory | |
| - mode: 644 | |
| - makedirs: True | |
| - names: | |
| - /etc/mysql | |
| - /data/mysql-data | |
| - /data/cluster-data | |
| - /data/cluster-data/backup |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Salt returner that report error back to sentry | |
| Pillar need something like: | |
| deployment: | |
| sentry_dsn: foobar |