Skip to content

Instantly share code, notes, and snippets.

View rickw's full-sized avatar

Rick Windham rickw

View GitHub Profile
#!/bin/sh
function failed()
{
echo "Failed: $@" >&2
exit 1
}
set -ex
export OUTPUT=$WORKSPACE/output
@heckj
heckj / script for enabling Cocoa debugging options.
Created December 7, 2010 05:20
@schwa’s script for enabling Cocoa debugging options.
-- Script to turn on Cocoa debugging options for a the active executable of an XCode project. See <Foundation/NSDebug.h>
-- For extra points change "project document 1" to whatever the right specifier for front most project document.
on createvariable(inName, inValue)
tell application "Xcode"
set theExecutable to active executable of project document 1 of application "Xcode"
if (every environment variable of theExecutable where name is inName) is {} then
make new environment variable at end of theExecutable with properties {name:inName, value:inValue, active:true}
end if
end tell
@ijt
ijt / http_get.go
Last active August 23, 2021 12:37
Example of using http.Get in go (golang)
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
)
@zpao
zpao / README.md
Created June 6, 2011 17:56
autoconf 2.13 homebrew formula

Install

  1. install homebrew
  2. place autoconf.rb into Formula folder: /usr/local/Library/Formula/
  3. run brew install autoconf
@notmasteryet
notmasteryet / hacks.js
Created July 1, 2011 05:26
Hack for IE to support pdf.js
(function() {
try {
var a = new Uint8Array(1);
return; //no need
} catch(e) { }
function subarray(start, end) {
return this.slice(start, end);
}
@rjpbonnal
rjpbonnal / gist:1169793
Created August 25, 2011 02:04
Solve OSX heat problem prl_disp_service
sudo launchctl stop com.parallels.desktop.launchdaemon
sudo launchctl start com.parallels.desktop.launchdaemon
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
//
// AMDevice.m
// Can I Jailbreak?
//
// Created by John Heaton on 10/1/11.
// Copyright 2011 GJB Software. All rights reserved.
//
#import "AMDevice.h"
@whit
whit / .Xresources
Created October 23, 2011 17:19
Personal ~/.Xresources settings. With some rxvt-unicode tweaks, Solarized color theme etc...
##############
# Xft settings
##############
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
@franck
franck / monitrc
Created December 1, 2011 11:11
monit config file (nginx, mysql, redis, tomcat)
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file, a complete list of statements and
## options please have a look in the monit manual.