Skip to content

Instantly share code, notes, and snippets.

# Install GNU core utilities (those that come with OS X are outdated)
brew install coreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
brew install findutils
# Install Bash 4
brew install bash
# Install more recent versions of some OS X tools
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update

Keybase proof

I hereby claim:

  • I am martinsnygg on github.
  • I am martinsnygg (https://keybase.io/martinsnygg) on keybase.
  • I have a public key whose fingerprint is F840 FCB4 2E02 E113 DCA8 93D5 5712 724E 5DBB 8ABE

To claim this, I am signing this object:

@martinsnygg
martinsnygg / facetime.sh
Created February 7, 2013 10:16
Facetime from terminal
open facetime://name@host.tld
@martinsnygg
martinsnygg / rpiminimizer.sh
Last active December 12, 2015 04:29
RPi minimizer
apt-get -y update && apt-get -y dist-upgrade && apt-get -y autoremove && apt-get -y autoclean
apt-get install vim vim-nox screen unzip zip python-software-properties aptitude curl ntp ntpdate git-core wget ca-certificates binutils raspi-config -y
wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update
rpi-update 240
reboot
@martinsnygg
martinsnygg / randomizer.sh
Last active December 12, 2015 03:38
Randomizes MAC id and hostname on OS X 10.8.2
#!/bin/bash
# diassociate from wireless network and flush cache
sudo airport -z
dscacheutil -flushcache
# set random MAC id on en0
sudo ifconfig en0 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`
# set random hostname