Skip to content

Instantly share code, notes, and snippets.

View duerlund's full-sized avatar

Thomas Duerlund duerlund

  • TV 2 Denmark
  • Odense, Denmark
View GitHub Profile
@cypres
cypres / install-folly.sh
Last active December 30, 2015 21:29
Canonical way to install https://github.com/facebook/folly on OS 10.9 (Mavericks)
#!/bin/bash
# Canonical way to install folly on OS 10.9 (Mavericks)
# For deps try: brew install boost glog gflags jemalloc scons autoconf automake libtool
git clone git@github.com:facebook/folly.git fb-folly
cd fb-folly
# Commit 79c25e6f4a breaks complilation on OS X, so checkout previous version
git checkout 6d89f3d33268eaa12d5eb03a4afa5caa856306c5
git clone https://code.google.com/p/double-conversion/

Moved

Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.

Why it was moved

Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!

#! /bin/sh
COMPAT_DIR=/usr/local/lib/compat/pkg
if ! [ -d ${COMPAT_DIR} ]; then
mkdir -p ${COMPAT_DIR}
fi
pkg update
@sekati
sekati / xcode-build-bump.sh
Created July 24, 2012 20:44
Xcode Auto-increment Build & Version Numbers
# 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)
@ertug
ertug / zfs-snapshot.sh
Created July 17, 2011 18:26
Automatic ZFS Snapshot Rotation
#!/bin/bash
##
# original code: http://andyleonard.com/2010/04/07/automatic-zfs-snapshot-rotation-on-freebsd/
# 07/17/2011 - ertug: made it compatible with zfs-fuse which doesn't have .zfs directories
##
# Path to ZFS executable:
ZFS=/usr/local/sbin/zfs