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/zsh | |
# get hfsdebug-lite at http://www.osxbook.com/software/hfsdebug/ | |
parse-hfsdebug-path () { sed -n '/^ path /s/^.*://p' } | |
parse-hfsdebug-prev () { sed -n '/^ ownerID /s/^.* = \([0-9]*\).*/\1/p' } | |
parse-hfsdebug-next () { sed -n '/^ groupID /s/^.* = \([0-9]*\).*/\1/p' } | |
hardlinks () { | |
hfsdebug=$(whence hfsdebug-lite || whence hfsdebug) |
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 block of code injects our source in the content scope and then calls the | |
// passed callback there. The whole script runs in both GM and page content, but | |
// since we have no other code that does anything, the Greasemonkey sandbox does | |
// nothing at all when it has spawned the page script, which gets to use jQuery. | |
// (jQuery unfortunately degrades much when run in Mozilla's javascript sandbox) | |
(function(run_me_in_page_scope) { | |
if ('undefined' == typeof __RUNS_IN_PAGE_SCOPE__) { // unsandbox, please! | |
var src = arguments.callee.caller.toString(), | |
script = document.createElement('script'); | |
script.setAttribute("type", "application/javascript"); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.