Skip to content

Instantly share code, notes, and snippets.

View jameswomack's full-sized avatar
📈

James J. Womack jameswomack

📈
View GitHub Profile
@xpe
xpe / start-riak
Created October 24, 2014 03:42
Adjusts ulimit, as needed, and starts Riak on Mac OS X. Tested on Yosemite.
#!/usr/bin/env bash
MAXFILES=$(launchctl limit maxfiles | sed -e 's/[[:space:]]+/ /g' | xargs)
if [ "$MAXFILES" != "maxfiles 65536 65536" ]; then
set -x
sudo launchctl limit maxfiles 65536 65536
fi
set -x
ulimit -n 65536
riak start
@caperj
caperj / Self Esteem.md
Created November 28, 2013 22:02
Self-help ebook

% The Six Pillars of Self-Esteem % Nathaniel Branden % _

Introduction

Let us identify the most important factors on which self-esteem depends.

If self-esteem is the health of the mind, then few subjects are of comparable urgency

@PsychoH13
PsychoH13 / PSYBlockTimer.h
Created December 7, 2009 06:19
Fire an NSTimer using a block as execution code.
/*
Copyright (c) 2009 Remy Demarest
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following