I hereby claim:
- I am duggan on github.
- I am duggan (https://keybase.io/duggan) on keybase.
- I have a public key whose fingerprint is 9D02 FCF7 E7C1 1D58 826B 7E69 9271 ADA5 309F A120
To claim this, I am signing this object:
| { | |
| id: 1, | |
| title: "Foo post", | |
| tags: ["foo", "bar", "baz"] | |
| }, | |
| { | |
| id: 2, | |
| title: "Bar post", | |
| tags: ["abc", "def", "ghi"] | |
| }, |
| <?php | |
| /* | |
| * Usage: | |
| * $ php check.php --extensions="apc memcached redis" | |
| * apc: 3.1.13 | |
| * memcached: 2.2.0 | |
| * redis: 2.2.5 | |
| */ | |
| class PHPExtensionUpdates { |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # | |
| # Imports a public key to all EC2 regions. | |
| # | |
| # Usage: | |
| # sh import-keypair <name> <path> | |
| # | |
| # Example: | |
| # sh import-keypair foo ~/.ssh/foo.pub | |
| # |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| if not RUBY_PLATFORM.downcase.include?("mswin") | |
| config.vm.provider "virtualbox" do |v| | |
| v.customize ["modifyvm", :id, "--cpus", | |
| `awk "/^processor/ {++n} END {print n}" /proc/cpuinfo 2> /dev/null || sh -c 'sysctl hw.logicalcpu 2> /dev/null || echo ": 2"' | awk \'{print \$2}\' | cut -d' ' -f2 `.chomp ] | |
| end | |
| end |
| #!/bin/sh | |
| # Usage: replace "foo" "bar" "/etc/omg.conf" | |
| replace() { | |
| local pattern=$1 | |
| local replacement=$2 | |
| local file=$3 | |
| local tempfile="$(mktemp -t temp.XXXXX)" | |
| sed "s/$pattern/$replacement/" ${file} > ${tempfile} && mv ${tempfile} ${file} |
| apt-get install -y curl | |
| # Install nginx | |
| if [ "xx" = "x$(grep 'nginx' /etc/apt/sources.list )x" ] ; then | |
| echo 'Installing nginx...' | |
| echo ' | |
| # Repositories for up to date nginx packages | |
| deb http://nginx.org/packages/mainline/ubuntu/ precise nginx | |
| deb-src http://nginx.org/packages/mainline/ubuntu/ precise nginx' >> /etc/apt/sources.list | |
| curl -s http://nginx.org/keys/nginx_signing.key | apt-key add - | |
| apt-get update > /dev/null |
| #!/bin/sh | |
| /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /data/homedirs/deploy/build/composer.phar $* |
| #!/bin/sh | |
| set -o nounset | |
| set -o errexit | |
| help() { | |
| printf "envclean - managing ruby environments | |
| envclean list list available ruby versions (uses rbenv). | |
| envclean for RUBY_VERSION cleans and initializes a specific ruby version. |
| gem list | cut -d" " -f1 | xargs gem uninstall -aIx |