Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

### Keybase proof
I hereby claim:
* I am jperkins on github.
* I am jperkins (https://keybase.io/jperkins) on keybase.
* I have a public key whose fingerprint is D7A0 1CB6 6FFB 732D 9F9D 0C12 7666 3E0D 8056 9058
To claim this, I am signing this object:
$ git branch -r --merged |
grep origin |
grep -v -e '>' -e master |
xargs -L1 |
awk '{split($0,a,"/"); print a[2]}' |
xargs git push origin --delete
#!/usr/bin/env ruby
#/ Usage: <progname> [options]...
#/ How does this script make my life easier?
# ** Tip: use #/ lines to define the --help usage message.
$stderr.sync = true
require 'optparse'
# default options
flag = false
option = "default value"
@jperkins
jperkins / latency.txt
Last active August 29, 2015 14:13 — forked from rtomayko/latency.txt
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 1 MB sequentially from memory 250,000 ns 0.25 ms
Round trip within same datacenter 500,000 ns 0.5 ms
Read 1 MB sequentially from SSD 1,000,000 ns 1 ms 4X memory
I keep meaning to watch The Clone Wars.
Back when Avatar: The Last Airbender had just wrapped up, I went to a fan
panel at Comic Con, at which Dee Bradley Baker (who voiced Appa and Momo and
most of the other creature voices for the show) was in attendance.
The attendees were mostly teenage-and-older fans of the show, but there were
a few kids there too. After the panel had wrapped up, Mr. Baker was talking
to one of the kids. He did an Appa-roar and a Momo-chitter and was generally
just being a great guy.
# ~/.osx — http://mths.be/osx
###############################################################################
# General UI/UX #
###############################################################################
# Set computer name (as done via System Preferences → Sharing)
scutil --set ComputerName "MacBookPro"
scutil --set HostName "MacBookPro"
scutil --set LocalHostName "MacBookPro"
@jperkins
jperkins / Folder Preferences
Created July 20, 2012 18:43 — forked from chrisyour/Folder Preferences
Show hidden files and hidden folders (except .git) in your TextMate project drawer
# Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences.
# Instructions:
# Go to TextMate > Preferences...
# Click Advanced
# Select Folder References
# Replace the following:
# File Pattern
@jperkins
jperkins / gist:2932942
Created June 14, 2012 21:04 — forked from ccurtisj/gist:2932908
Format meeeeeee
<html>
<body style="width: 653px; font-family: Arial; font-size: 12px; background-color: #cccccc;" bgcolor="#cccccc">
<opentracking />
<table style="font-family: Arial; width: 653px; background-color: #ffffff; border: 1px solid #999;" bgcolor="#ffffff">
<tr>
<td style="width: 653px;">
<a href="http://www.dealradar.com/deals/chicago?src=email&utm_source=custom_digest&utm_medium=email&utm_term=header&utm_campaign=chicago" style="color: #027986; text-decoration: none;">
<img alt="" src="http://s3.amazonaws.com/dealradar_assets/email_assets/email_header.png" style="border: none;" border="0" />
</a>
<h1 style="margin-top: 15px; margin-left: 20px; margin-bottom: 0px; font-size: 15px; font-family: Arial; color: #027986;">Local Deals in Chicago - Thursday June 14, 2012</h1>