Skip to content

Instantly share code, notes, and snippets.

$ git log | tail -n5
commit 5e3aa42c84bbd7c82b1d0b595ca13b49d3a6e8bf
Author: James Halliday <mail@substack.net>
Date: Wed Mar 13 15:16:33 2013 -0700
happstack article
$ git filter-branch --env-filter 'if [ "$GIT_COMMIT" = "5e3aa42c84bbd7c82b1d0b595ca13b49d3a6e8bf" ]; then GIT_AUTHOR_DATE="2009-10-25 09:59:47 UTC"; fi'
Rewrite 85a994a56fc0fae5c9f082b1e2dbb2ee8ee23ceb (7/7)
Ref 'refs/heads/master' was rewritten
#!/usr/bin/env ruby
# Made by Pieter de Bie <frimmirf@gmail.com>
# Based on a "Pastie" task by someone
require "tempfile"
GIST_URL = 'http://gist.github.com/gists'
GIST_LOGIN_URL = 'https://gist.github.com/session'
USERNAME = "martinisoft"
TOKEN = "6ef8395fecf207165f1a82178ae1b984"
/*
---
name: guilloche
script: guilloche.js
description: guilloche
provides: [Guilloche]
...
*/
<div class="fade" ng-class="{in:someData.length}">
I'm not visible until someData is there!
</div>
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
@durango
durango / README.md
Created October 12, 2013 18:46 — forked from nikcub/README.md
## From a post on the ML, apropos this:
## http://lowlatencyweb.wordpress.com/2012/03/20/500000-requestssec-modern-http-servers-are-fast.
## For sysctl.conf
net.ipv4.tcp_slow_start_after_idle = 0
echo "2048 64512" > /proc/sys/net/ipv4/ip_local_port_range
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse

A quick "how to" on what you need to do to both setup AND recover a single-server PostgreSQL database using WAL-E

Setup:

  1. These packages:
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048

In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:

Documentation

  • Accurate / up-to-date systems architecture diagram

  • Accurate / up-to-date network diagram

  • Out-of-hours support plan

  • Incident management plan