Skip to content

Instantly share code, notes, and snippets.

View mikehale's full-sized avatar

Michael Hale mikehale

  • Heroku
  • Holly Springs, NC
View GitHub Profile

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
#!/bin/sh
# Print out what changed in a nice format.
git log @{1}.. --pretty=format:"%Cblue%an%Creset %ar: %Cred\"%s%b\"%Creset (%h)" --reverse

Did you follow this gist, wallowing in its awesomeness, only to realize your Visual Voicemail stopped working? You just need to reset your carrier settings file, and you’ll get to keep tethering and get your Visual Voicemail back!

  1. Connect your iPhone and fire up iTunes. Option-click on the Restore button like you did before.
  2. Navigate to your-username | Library | iTunes | iPhone Carrier Support
  3. Click on the file in there to reset your carrier settings.
This is a short collection of resources I have used in packaging Chef for Debian.
Good starting point, links to some of the other pages here:
* http://www.xs4all.nl/~carlo17/howto/debian.html
Debian New Maintainers guide:
* http://www.debian.org/doc/maint-guide/
@mikehale
mikehale / default.rb
Created April 8, 2010 19:06 — forked from ezmobius/default.rb
delayed_job recipe
#
# Cookbook Name:: delayed_job
# Recipe:: default
#
if ['solo', 'app', 'app_master'].include?(node[:instance_role])
# be sure to replace "app_name" with the name of your application.
run_for_app("maloca") do |app_name, data|
#!/bin/sh
# Demo how your can merge opscode chef-repo & cookbooks
# and perm. keep up to date with opscode cookbooks (the last "git" cmd)
% git clone git://github.com/opscode/chef-repo.git
Initialized empty Git repository in /home/tim/src/chef-repo/.git/
remote: Counting objects: 107, done.
remote: Compressing objects: 100% (99/99), done.
remote: Total 107 (delta 45), reused 0 (delta 0)
Receiving objects: 100% (107/107), 16.14 KiB, done.
Resolving deltas: 100% (45/45), done.
class Chef
module Mixin
module Language
# esearch(:node, 'role\[admin\]')
# recursively search for this role/recipe in all roles
def esearch(context, search)
if context == :role
ret = []
# First solve all roles:
roles = search(:role, search)
@mikehale
mikehale / config.ru
Created September 13, 2010 20:20 — forked from jtimberman/config.ru
require 'rubygems'
require 'merb-core'
require 'chef'
Chef::Config.from_file(File.join("/etc", "chef", "server.rb"))
Merb::Config.setup(:merb_root => File.expand_path(File.dirname(__FILE__)),
:environment => ENV['RACK_ENV'],
:fork_for_class_load => false,
:init_file => File.dirname(__FILE__) / "config/init.rb")
# Compare the run list of two chef nodes.
% diff <(knife node show bourbon -r) <(knife node show barkeep.int.housepub.org -r)
3,4c3,8
< "recipe[workstation]",
< "recipe[users]"
---
> "role[base]",
> "role[production]",
> "role[dnsserver]",
# ~/.tmux.conf
#
# See the following files:
#
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
#
# URLs to read:
#