Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
wrangling code

Sam Deane samdeane

💭
wrangling code
View GitHub Profile
@samdeane
samdeane / GlobalSettings.plist
Created Aug 2, 2012
Script for generating appledoc docs
View GlobalSettings.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>--project-company</key>
<string>Elegant Chaos</string>
<key>--company-id</key>
<string>com.elegantchaos</string>
<key>--keep-undocumented-objects</key>
<false/>
@samdeane
samdeane / fixgit.sh
Created Aug 19, 2012
Script to move a git repo containing absolute gitdir and worktree submodule paths
View fixgit.sh
#!/usr/bin/env bash
# Fix up a git repo containing submodules that have absolute paths which have changed.
#
# Note that this doesn't do the *proper* fix, which is to turn the absolute paths into
# relative paths. This is possible, but would require a lot more logic because the relative
# paths would be different in each case.
#
# What it does instead is a pragmatic workaround, which is to search & replace the old
# path with a new (and presumably correct) one. This will get you up and running again.
View xcode_ramdisk.sh
#!/bin/sh
# Create a RAM disk with same perms as mountpoint
# Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions
# Usage: sudo ./xcode_ramdisk.sh start
USERNAME=$(logname)
TMP_DIR="/private/tmp"
RUN_DIR="/var/run"
SYS_CACHES_DIR="/Library/Caches"
View keybase.md

Keybase proof

I hereby claim:

  • I am samdeane on github.
  • I am samdeane (https://keybase.io/samdeane) on keybase.
  • I have a public key ASD7E3R8Nv9oO_v_td5Q1XMtU0iWVjcvgtdV8Lp7YEBiAAo

To claim this, I am signing this object:

You can’t perform that action at this time.