ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pbxproj -crlf -diff -merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.acn | |
*.acr | |
*.alg | |
*.aux | |
*.bak | |
*.bbl | |
*.bcf | |
*.blg | |
*.brf | |
*.bst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to make_new_project(project_name) | |
tell application "Xcode" to activate | |
tell application "System Events" | |
tell process "Xcode" | |
click menu item "New Project…" of menu 1 of menu bar item "File" of menu bar 1 | |
tell window "New Project" | |
-- row 8 is empty project, 4 is Cocoa App | |
select row 4 of outline 1 of scroll area 1 of splitter group 1 of group 1 | |
click button "Cocoa Application" of radio group 1 of scroll area 1 of splitter group 1 of splitter group 1 of group 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMPFILE=".tmpGitRemotes" | |
REMOTENAME="origin" | |
COMMIT=$1 | |
git fetch | |
git branch -a --merged |grep "remotes/$REMOTENAME/" > $TMPFILE | |
if [[ $COMMIT == "commit" ]]; then | |
echo "deleting git branches" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Compile as: clang -O4 -framework Foundation property-access.m && ./a.out | |
#import <Foundation/Foundation.h> | |
// Performance timer, credit: Lars Schneider @kit3bus | |
#import <mach/mach_time.h> | |
#define MAKE_NSSTRING(str) (NSString *)CFSTR(#str) | |
#define START(name) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Pre-commit hook for git which removes trailing whitespace, converts tabs to spaces, and enforces a max line length. | |
if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 1) Use http://defunkt.io/dotjs/ | |
* 2) Install this into ~/.js/github.com.js | |
* 3) Enjoy a button to edit any file on a pull request (some restrictions may apply, void where prohibited) | |
* | |
* Note: this will replace the "View file @ ...", which I find pretty useless (and it's contained in the edit mode, | |
* anyway). However, if you want to look at files where you don't have access to edit them, this will suck. | |
*/ | |
function getBranch() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -ue | |
if [[ $# -lt 1 || $# -gt 2 ]]; then | |
echo "Usage: git $(basename "$0" | sed 's/^git-//') <end-commit> [<start-commit>]" | |
exit 1 | |
fi | |
diff_range="$1^..$1" | |
end_commit="$1^" | |
if [[ $# -eq 2 ]]; then |
OlderNewer