Skip to content

Instantly share code, notes, and snippets.

View ryanschwartz's full-sized avatar

Ryan Schwartz ryanschwartz

View GitHub Profile
[carmen:/Volumes/vitalsource/bootstrap] admin$ cat passenger_gzip_boom.patch
--- Hooks.cpp 2009-10-21 22:45:03.000000000 +0000
+++ Hooks.cpp.patch 2009-10-26 19:17:19.000000000 +0000
@@ -480,7 +480,7 @@
const char *contentLength;
expectingUploadData = ap_should_client_block(r);
- contentLength = lookupHeader(r, "Content-Length");
+ contentLength = NULL;
sudo -s
find . -type f -exec chmod 0644 {} \; -print
find . -type d -exec chmod 0755 {} \; -print
exit
Warning: You should upgrade to Xcode 3.1.4
==> Downloading http://collectd.org/files/collectd-4.9.1.tar.bz2
File already downloaded and cached to /Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/collectd/4.9.1 --disable-debug --disable-dependency-tracking
==> make install
Making install in libltdl
/bin/sh /private/tmp/homebrew-collectd-4.9.1-qb88/collectd-4.9.1/libltdl/config/install-sh -d .
cp ./argz_.h argz.h-t
mv argz.h-t argz.h
make install-am
#!/bin/bash -e
###########################################################
# Back up MySQL databases
###########################################################
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
BACKUP_DIR="."
# Do not backup these databases
--- lib/god/cli/run.rb.orig 2008-12-18 21:20:23.000000000 +0000
+++ lib/god/cli/run.rb 2008-12-18 21:22:18.000000000 +0000
@@ -73,6 +73,11 @@
BleakHouseDiagnostic.install
end
+ # respect --no-syslog even if we're running in front, which is a requirement for launchd on Mac OS X
+ unless @options[:syslog]
+ Logger.syslog = false
+ end