Skip to content

Instantly share code, notes, and snippets.

View micahwalter's full-sized avatar
👋

Micah Walter micahwalter

👋
View GitHub Profile
@micahwalter
micahwalter / git-remove-history.sh
Created November 16, 2009 07:46
Script to permanently delete files/folders from your git repository.
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0are still
@micahwalter
micahwalter / .gitignore
Created August 18, 2010 03:35 — forked from redoPop/.gitignore
wordpress .gitignore
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@micahwalter
micahwalter / Client SSO
Created November 10, 2010 03:10
Additions to settings.php for client sites with SSO
$conf['session_inc'] = 'sites/all/modules/sso/session.singlesignon.inc';
$db_prefix = array(
'default' => 'client-prefix',
'authmap' => '',
'sessions' => '',
'users' => '',
);
@micahwalter
micahwalter / .gitignore
Created February 23, 2011 00:12
ruby on rails .gitignore
.bundle
db/*.sqlite3*
log/*.log
tmp/**/*
tmp/*
doc/api
doc/app
*.swp
*~
.DS_Store
@micahwalter
micahwalter / example.js
Created April 9, 2011 19:45
sketch_apr10a
// Global variables
float radius = 50.0;
int X, Y;
int nX, nY;
int delay = 16;
// Setup the Processing Canvas
void setup(){
size( 200, 200 );
strokeWeight( 10 );
@micahwalter
micahwalter / .gitignore
Created April 10, 2011 12:59
processing .gitignore
.DS_Store
applet
application.linux
application.macosx
application.windows
*.zip
@micahwalter
micahwalter / Gemfile
Created April 11, 2011 02:20
starter Gemfile for rails projects
source 'http://rubygems.org'
gem 'rails'
gem 'sqlite3'
group :development do
gem 'rspec-rails', '2.0.0.beta.18'
gem 'spork'
gem 'annotate-models'
@micahwalter
micahwalter / interfaces
Created April 17, 2011 17:38
/etc/network/interfaces file for static IP on ubuntu server
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.104
netmask 255.255.255.0
network 192.168.1.0
@micahwalter
micahwalter / interfaces
Created April 17, 2011 17:38
/etc/network/interfaces file for static IP on ubuntu server
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.104
netmask 255.255.255.0
network 192.168.1.0
$ sudo apt-get install avahi-daemon
$ sudo apt-get install libnss-mdns
$ sudo vi /etc/nsswitch.conf