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
% DYLD_LIBRARY_PATH=~/src/macruby-master sudo ./methods.d -c "/Users/watson/src/macruby-master/macruby /Users/watson/tmp/t.rb" | |
"a" | |
-> _GLOBAL__I__ZN12_GLOBAL__N_115ForceJITLinkingE | |
<- _GLOBAL__I__ZN12_GLOBAL__N_115ForceJITLinkingE = 0x1 | |
-> __static_initialization_and_destruction_0(int, int) | |
<- __static_initialization_and_destruction_0(int, int) = 0x1 | |
-> start | |
-> main | |
-> ruby_sysinit | |
<- ruby_sysinit = 0x3f |
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
# this can be put in [repo]/.git/config for local settings | |
# or ~/.gitconfig for global settings | |
# create a difftool "nodiff" that just returns true | |
# this path is for Mac. On linux it's /bin/true i guess | |
[diff "nodiff"] | |
command = /usr/bin/true | |
# make git ignore white space differences, many different possibilites here |
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
LOAD_OPTIONAL_APPS = True | |
if LOAD_OPTIONAL_APPS: | |
# <copypaste from="http://blog.jupo.org/post/586256417/optional-django-apps"> | |
# Define any settings specific to each of the optional apps. | |
# | |
import sys | |
USE_SOUTH = not (len(sys.argv) > 1 and sys.argv[1] == "test") | |
DEBUG_TOOLBAR_CONFIG = {"INTERCEPT_REDIRECTS": True} |
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
import yaml | |
import yaml.constructor | |
try: | |
# included in standard lib from Python 2.7 | |
from collections import OrderedDict | |
except ImportError: | |
# try importing the backported drop-in replacement | |
# it's available on PyPI | |
from ordereddict import OrderedDict |
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
diff --git a/lesspipe.sh.in b/lesspipe.sh.in | |
index 00b40fc..2e620f4 100755 | |
--- a/lesspipe.sh.in | |
+++ b/lesspipe.sh.in | |
@@ -506,13 +506,20 @@ isfinal() { | |
exit 1 | |
elif [[ "$1" = *directory* ]]; then | |
echo "==> This is a directory, showing the output of" | |
- echo "ls -lA $2" | |
# color requires -r or -R when calling less, not recommended |
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
-- pastebin.workflow.applescript | |
-- | |
-- An automator workflow to copy selected text to pastebin.com | |
-- | |
-- Created by Marc Abramowitz | |
-- December 5, 2010 | |
-- version 1.0 | |
on run {input} | |
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 ruby | |
# Continuous testing for Ruby with fork/eval | |
# https://github.com/sunaku/test-loop#readme | |
#----------------------------------------------------------------------------- | |
# (the ISC license) | |
# | |
# Copyright 2010 Suraj N. Kurapati <sunaku@gmail.com> | |
# | |
# Permission to use, copy, modify, and/or distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above |
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
function glast() { | |
LATEST=`git log --oneline -n 1` | |
echo -n $LATEST | ack '^([a-zA-Z0-9]*) {1}' --output='$1' | pbcopy | |
echo $LATEST | |
} |
NewerOlder