Skip to content

Instantly share code, notes, and snippets.

@ncoelle
ncoelle / find-links.sh
Created September 22, 2015 17:38 — forked from warpech/find-links.sh
Find Gollum linked pages and orphans
@ncoelle
ncoelle / AppConfiguration.java
Last active August 29, 2015 14:28 — forked from jhannes/AppConfiguration.java
Dead simple configuration
package com.johannesbrodwall.infrastructure;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

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

# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@ncoelle
ncoelle / createDaemonUser
Created September 21, 2014 16:27
Script from Serverfault (http://serverfault.com/questions/182347/add-daemon-account-on-os-x) [Add daemon account on OS X] second answer: http://serverfault.com/a/562926
#! /bin/bash
#
# Check that we are superuser (i.e. $(id -u) is zero)
if (( $(id -u) ))
then
echo "This script needs to run as root"
exit 1
fi