Work
Principles, myths and more
- Less software
- The monkey on your back
- Deliberate work
- Adding people to a project makes it later
- Murphy's law
- Peter principle
It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
# Use last tag as the base for the version. E.g. tag initial commit as 0.0 | |
LAST_TAG_VERSION=`git describe --tags | cut -f1 -d"-"` | |
# Optional. Same as above but keeps the commit hash | |
#LAST_TAG_VERSION=`git describe --tags` | |
# Total number of commits in the repository | |
TOTAL_COMMITS=`git rev-list HEAD --count` | |
# Write the version numbers to the compiled product |
#!/usr/bin/python | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
This style guide outlines the coding conventions that I try to stick to when writing Objective-C. I'm posting it here mostly as a brain dump and easy reference for the future, and to formalise it a little more.
It's pretty similar to that of the NYTimes. This document is mostly a customised version of that, you should go check theirs out!
If you're looking to see some of the reasons behind some choices, or for something I haven't covered, look at the sites below, Apples documentation is pretty great.
Wes Winham winhamwr@gmail.com
There are many tutorials floating around the web that almost get you a dynamic VPN in EC2. The goal of this tutorial is to be a one-stop-shop for this specific setup.
# HTTP Status Cats | |
# Apache (htaccess) config created by @dave1010 | |
# Licensed CC BY 2.0 | |
# Images CC BY 2.0, from GirlieMac's photostream: | |
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/ | |
# Usage: copy save this file as .htaccess or add it to your httpd.conf | |
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>' |
#!/bin/bash | |
debug=`git diff --cached | grep -C 2 -E '+\s*And (open|show me the page|save_and_open_page)'` | |
pry=`git diff --cached | grep -C 2 -E 'binding.pry'` | |
debugger=`git diff --cached | grep -C 2 debugger` | |
console_log=`git diff --cached | grep -C 2 console.log` | |
conflicts=`git diff --cached | grep -C 2 -E '<<<|>>>'` | |
if [ -n "$debug" ]; then | |
echo "debugging statements added in this commit" |
A tongue-in-cheek look at coding standards in the WordPress core and the average WordPress plugin.
global
- in case they're going to be used again'yes'
/'no'
) - for clarity