d5d304a03a9219cb2b025dfd10fce2480a31d869
compute/rules.md
| ... | ... | @@ -0,0 +1,32 @@ |
| 1 | +<!-- TITLE: 10 sysadmin commandments --> |
|
| 2 | +<!-- SUBTITLE: Because production is war. And war is hell. --> |
|
| 3 | + |
|
| 4 | +# 1 Thou shalt love the defaults. |
|
| 5 | +Rainbows and emoji ZSH prompt? On my servers? Fuck no. Your ansible PR is *ignored for eternity*. |
|
| 6 | +Do less to ~~do more~~ avoid embarrassment. |
|
| 7 | +# 2 Thou shalt use the infrastructure. |
|
| 8 | +We both know you couldn't implement Paxos if your miserable life depended on it. |
|
| 9 | +Stop writing pretentious code you won't understand in a week's time and put that shit in zookeeper, or a database, or DNS, or whatever. |
|
| 10 | +# 3 Thou shalt use the OS. |
|
| 11 | +If it'll fit in one line of grep | sed | awk, then do that. If you need more power, break out split and xargs -P. Use flock. Use cron. Use logrotate. Use syslog. |
|
| 12 | +[Taco Bell](http://widgetsandshit.com/teddziuba/2010/10/taco-bell-programming.html) is the way. Now and forever. |
|
| 13 | +# 4 Thou shalt always check last mod times. |
|
| 14 | +Are you sure that's the right file? |
|
| 15 | +Fuck me, are you even on the right host? |
|
| 16 | +# 5 Thou shalt not blame DNS. |
|
| 17 | +Despite what the Interwebs told you, it's not DNS. |
|
| 18 | +nslookup has no place in a modern society. Use getent. Use dig. |
|
| 19 | +# 6 Thou shalt respect the sanctity of stdout. |
|
| 20 | +If your app has nothing to say, it should shut the fuck up. Logs do not belong on stdout. *Ever*. |
|
| 21 | +The Unix way is the righteous way. |
|
| 22 | +# 7 Thou shalt automate everything. |
|
| 23 | +Are you being paid by the fucking keystroke or something? |
|
| 24 | +This isn't a union gig. Get that mind-numbing carpal-tunnel-inflaming shiteshow into Ansible immediately. |
|
| 25 | +# 8 Thou shalt only use UTC. |
|
| 26 | +Those VMs could be on the moon for all I know. Servers are remote - that's the fucking point. |
|
| 27 | +Don't make me convert your guess-the-timezone-not-quite-ISO timestamps during a outage. Not now. Not again. |
|
| 28 | +# 9 Thou shalt cover thine ass |
|
| 29 | +Record everything. Confirm decisions by email. Keep timelines during outages. |
|
| 30 | +The paper trail is your saviour, and you *will* worship at its alter. |
|
| 31 | +# 10 Those who email screenshots of PuTTY sessions around shall be destroyed. |
|
| 32 | +What the *actual fuck* is wrong with you? |
|
| ... | ... | \ No newline at end of file |
rules.md
| ... | ... | @@ -1,32 +0,0 @@ |
| 1 | -<!-- TITLE: 10 sysadmin commandments --> |
|
| 2 | -<!-- SUBTITLE: Because production is war. And war is hell. --> |
|
| 3 | - |
|
| 4 | -# 1 Thou shalt love the defaults. |
|
| 5 | -Rainbows and emoji ZSH prompt? On my servers? Fuck no. Your ansible PR is *ignored for eternity*. |
|
| 6 | -Do less to ~~do more~~ avoid embarrassment. |
|
| 7 | -# 2 Thou shalt use the infrastructure. |
|
| 8 | -We both know you couldn't implement Paxos if your miserable life depended on it. |
|
| 9 | -Stop writing pretentious code you won't understand in a week's time and put that shit in zookeeper, or a database, or DNS, or whatever. |
|
| 10 | -# 3 Thou shalt use the OS. |
|
| 11 | -If it'll fit in one line of grep | sed | awk, then do that. If you need more power, break out split and xargs -P. Use flock. Use cron. Use logrotate. Use syslog. |
|
| 12 | -[Taco Bell](http://widgetsandshit.com/teddziuba/2010/10/taco-bell-programming.html) is the way. Now and forever. |
|
| 13 | -# 4 Thou shalt always check last mod times. |
|
| 14 | -Are you sure that's the right file? |
|
| 15 | -Fuck me, are you even on the right host? |
|
| 16 | -# 5 Thou shalt not blame DNS. |
|
| 17 | -Despite what the Interwebs told you, it's not DNS. |
|
| 18 | -nslookup has no place in a modern society. Use getent. Use dig. |
|
| 19 | -# 6 Thou shalt respect the sanctity of stdout. |
|
| 20 | -If your app has nothing to say, it should shut the fuck up. Logs do not belong on stdout. *Ever*. |
|
| 21 | -The Unix way is the righteous way. |
|
| 22 | -# 7 Thou shalt automate everything. |
|
| 23 | -Are you being paid by the fucking keystroke or something? |
|
| 24 | -This isn't a union gig. Get that mind-numbing carpal-tunnel-inflaming shiteshow into Ansible immediately. |
|
| 25 | -# 8 Thou shalt only use UTC. |
|
| 26 | -Those VMs could be on the moon for all I know. Servers are remote - that's the fucking point. |
|
| 27 | -Don't make me convert your guess-the-timezone-not-quite-ISO timestamps during a outage. Not now. Not again. |
|
| 28 | -# 9 Thou shalt cover thine ass |
|
| 29 | -Record everything. Confirm decisions by email. Keep timelines during outages. |
|
| 30 | -The paper trail is your saviour, and you *will* worship at its alter. |
|
| 31 | -# 10 Those who email screenshots of PuTTY sessions around shall be destroyed. |
|
| 32 | -What the *actual fuck* is wrong with you? |
|
| ... | ... | \ No newline at end of file |