Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
git filter-branch --env-filter '
an=$GIT_AUTHOR_NAME
am=$GIT_AUTHOR_EMAIL
cn=$GIT_COMMITTER_NAME
cm=$GIT_COMMITTER_EMAIL
if [ $GIT_COMMITER_EMAIL == "your@email" ]

HOWTO: iPhone AT&T Tethering

In 10 steps:

  • Update iTunes to 8.2 via Software Update
  • Update your iPhone to the 3.0 release (out today - June 17th)
  • Download this dmg and mount it: tethering file
  • Enable hidden carrier testing option (in Terminal.app): defaults write com.apple.iTunes carrier-testing -bool TRUE
  • Start up iTunes
@nirvdrum
nirvdrum / 0what.md
Created August 24, 2009 12:49 — forked from defunkt/0what.md

Poor Man's Deploy

  • Start a Sinatra server on port 4000
  • GET / to that server triggers a git pull and mod_rails restart
  • Hit port 4000 locally after pushing

Why?

# Comment if you dont want rubygems
require 'rubygems'
require 'gitauth'
require 'fileutils'
if ARGV.empty?
puts "Usage: ruby #{$0} path-to-base-dir"
exit!
end
#!/usr/bin/env ruby
def output_config
puts <<-END
graph_category App
graph_title passenger status
graph_vlabel count
sessions.label sessions
max.label max processes
#!/usr/bin/env ruby
# put in /etc/munin/plugins and restart munin-node
# by Dan Manges, http://www.dcmanges.com/blog/rails-application-visualization-with-munin
# NOTE: you might need to add munin to allow passwordless sudo for passenger-memory-stats
def output_config
puts <<-END
graph_category App
graph_title Passenger memory stats
graph_vlabel count
Proposal title: AWS Deployment with Rubber
==============
Description (400 characters - 65 words):
=======================================
Amazon Web Services (AWS) is one of the easiest ways to get going with cloud computing. Rubber is a Capistrano plugin that simplifies provisioning and deploying Ruby Web apps to EC2, EBS, and S3. In this
talk you'll learn how to build out both common and complex application stacks rapidly on AWS.
Proposal title: AWS Deployment with Rubber
==============
Description (400 characters - 65 words):
=======================================
Cloud computing has made computing at scale available to everyone. Cloud computing is not without its pitfalls, however. Overcoming these relies on following the deployment best practices discovered through years of trial and error. The Rubber framework aims to codify some of these best practices and help you build and manage your real world cloud deployment in a practical manner.
@nirvdrum
nirvdrum / performance_and_backport_gc.patch
Created January 27, 2012 22:16 — forked from funny-falcon/performance_and_backport_gc.patch
Union of backport GC and performance patches for ruby-1.9.3-p0
diff --git a/ChangeLog b/ChangeLog
index c4ea779..0a6bf73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,188 @@
+Tue Jan 17 12:32:46 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (aligned_malloc, aligned_free): covered missing defined
+ operators and fixes for cygwin.
+
@nirvdrum
nirvdrum / rubber.yml
Last active August 29, 2015 13:56 — forked from DaKaZ/rubber.yml
# REQUIRED: The name of your application
app_name: foo
# REQUIRED: The system user to run your app servers as
app_user: foo
# REQUIRED: Notification emails (e.g. monit) get sent to this address
#
admin_email: "webmaster@foo.com"