Skip to content

Instantly share code, notes, and snippets.

View kiwhite's full-sized avatar

Kristopher Ian White kiwhite

View GitHub Profile
@rudelm
rudelm / autofs.md
Last active September 22, 2024 00:00
Use autofs on Mac OS X to mount network shares automatically during access

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service

@kiwhite
kiwhite / sshuttleEverything.sh
Created October 14, 2011 15:27
SSHuttle, send all traffic
#! /bin/bash
$REMOTE_SERVER='somewhere.far.away'
sudo sshuttle 0/0 -vNHr $USER@$REMOTE_SERVER
@douglasjarquin
douglasjarquin / homebrew-update.sh
Created June 14, 2011 17:58
Update outdated Homebrew packages
brew upgrade `brew outdated | awk {'print $1'} | xargs`
/******************************************************************************
* MSP430 ADC10 Example for the G2231
*
* Description: This code provides an example for using the 10 bit ADC in the
* MSP430G2231. The code requires either a terminal program or
* the application provided on the blog mentioned below.
* depending on which ascii character is sent to the device,
* either VCC, the temperature sensor, or an external pin will
* be measured once and the results sent to the computer.
*