This file contains hidden or 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 was part of an old tutorial I made that is no longer online. | |
| Newer versions of Isotope and better popState support may obviate this code, but I was asked to repost it. | |
| */ | |
| $(function(){ | |
| var History = window.History; | |
| var $container = $('#container'), | |
| // object that will keep track of options | |
| isotopeOptions = {}, |
This file contains hidden or 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
| export DYLD_LIBRARY_PATH=`brew --prefix`/lib | |
| export ORACLE_HOME=`brew --prefix`/opt/oracle-instant-client |
This file contains hidden or 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
| SELECT | |
| REPLACE( | |
| DBMS_METADATA.GET_DDL(OBJECT_TYPE, OBJECT_NAME, OWNER), | |
| ( SELECT( '"' || SYS_CONTEXT('userenv', 'session_user') || '".' ) FROM DUAL ), | |
| '' | |
| ) as DDL | |
| FROM ALL_OBJECTS | |
| WHERE OWNER = SYS_CONTEXT('userenv', 'session_user') | |
| AND object_type IN ('TRIGGER'); |
This file contains hidden or 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
| bundle config build.dmarkow-raspell --with-opt-dir=/opt/boxen/homebrew/ && bundle |
This file contains hidden or 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 | |
| # Disable Apps from Relaunching on login in OSX Lion... | |
| # RJ Pittman | http://github.com/rypit | |
| FILES=~/Library/Preferences/ByHost/com.apple.loginwindow.*.plist | |
| for f in $FILES | |
| do | |
| echo "Settings file: $f" | |
| echo "Unlocking..." | |
| chflags nouchg $f |
This file contains hidden or 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 | |
| # computer activity data collection for http://jehiah.cz/one-two/ | |
| # Originally by Jehiah Czebotar. This verison by Luca Spiller, then RJ Pittman. | |
| FILE="$HOME/Dropbox/activity_log/`hostname`-`date +%Y%m%d`.log" | |
| function log_activity() | |
| { | |
| local TIME=`date "+%Y-%m-%dT%H:%M:%S%z"` | |
| local IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) |
This file contains hidden or 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 | |
| IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) | |
| FILE="$HOME/Dropbox/daily_photo/`date +%Y%m%d`.png" | |
| if [ $IDLE -lt 61 ]; then | |
| PID=`ps auxww |grep loginwindow | grep -v grep | awk '{print $2}'` | |
| D=`date +%Y%m%d_%H%M%S` | |
| imagesnap $FILE | |
| fi |
This file contains hidden or 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 | |
| # Attempt OS detection to set path | |
| os=`uname`; | |
| phpcs=`which phpcs`; | |
| # ST2 Packages directory | |
| if [ $os = 'Linux' ] | |
| then | |
| st2Dir=~/".config/sublime-text-2/Packages/" |
NewerOlder