Skip to content

Instantly share code, notes, and snippets.


Andy Georges itkovian

View GitHub Profile
rudelm /
Last active Jan 21, 2021
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

A Quick and Dirty Lens primer

Why does Lens exist? Well, Haskell records suck, for a number of reasons. I will enumerate them using this sample record.

data User = User { login    :: Text
                 , password :: ByteString
                 , email    :: Text
                 , created  :: UTCTime
NicolasT / quickcheck_c.hs
Created Oct 18, 2010
A demonstration of using QuickCheck to test C code
View quickcheck_c.hs
-- This is a snippet cut-and-paste from a larger code body, might not compile or
-- work as expected as such
import Prelude hiding (pi)
import Data.Bits
import Data.Word (Word32)
import Foreign.C.Types (CSize)
import Foreign.Marshal.Array (withArrayLen)
azet /
Last active Aug 29, 2015
Third-party apps to use when publishing a F/OSS project on GitHub et al.