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
/* | |
* Fake in-URL-bar-search à la Chrome replacing hijacked DNS redirects | |
* | |
* /etc/hosts | |
* 127.0.0.1 dnssearch.jazztel.com # where your DNS redirects | |
* | |
* Should run as root to be able to use port 80: | |
* sudo node url-bar-search.js | |
*/ | |
var http = require("http"); |
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
$("head").remove(); | |
$("#embed_live").appendTo("body"); | |
$("#embed_live").siblings().remove(); |
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
/* Extract flash video player from rtve.es */ | |
$("head").remove(); | |
$("object").appendTo("body"); | |
$("object").siblings().remove(); |
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
get_dir() { | |
printf "%s" $(pwd | sed "s:$HOME:~:") | |
} | |
rename_tab() { | |
echo -ne "\033]0;"$@"\007" | |
} | |
rename_tab_git_branch() { | |
branch=`git symbolic-ref HEAD 2>/dev/null | cut -d/ -f3` |
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 | |
appledoc=`which appledoc` | |
TMPDOCS=/Volumes/mem/appledoc-tmp | |
if [ "x${SRCROOT}" != "x" ];then | |
ROOT="${SRCROOT}" | |
else | |
ROOT=/path/to/project | |
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
/* .h */ | |
@interface DJRPasteboardProxy : NSObject | |
@property NSPasteboard *pasteboard; | |
@end | |
/* .m */ |
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
/* .h */ | |
#import <Foundation/Foundation.h> | |
#import <Carbon/Carbon.h> | |
@interface DJRKeyboardTools : NSObject | |
{ | |
TISInputSourceRef layout; | |
const UCKeyboardLayout* layoutData; | |
id keyCodeCache; |
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
/* .h */ | |
@interface DJRKeyboardEvents : NSObject | |
+ (void)sendCommandC; | |
@end | |
/* .m */ |
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 script adds a "Webclip" shortcut to your homescreen. | |
# The shortcut can be used to open a web page in full-screen mode, | |
# or to launch a custom URL (e.g. a third-party app). | |
# You'll be asked for a title, a URL, and an icon (from your camera roll) | |
import plistlib | |
import BaseHTTPServer | |
import webbrowser | |
import uuid | |
from io import BytesIO |
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
cd ~/.vim/bundle/command-t/ruby/command-t | |
git pull | |
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb | |
make |
OlderNewer