Skip to content

Instantly share code, notes, and snippets.

View micahwalter's full-sized avatar
👋

Micah Walter micahwalter

👋
View GitHub Profile
@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'
sudo gedit /etc/avahi/services/afpd.service
@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
$ sudo vi /etc/netatalk/AppleVolumes.default
~/ "$u"
@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