The RoLLing cOde

Avatar

Rumor, crap and unoriginal 谣言 扯谈 非原创
by FreeWizard

Convert adblock rule list to regular expressions

Here's the script convert EasyList and ChinaList to regex lines, which may be used in some web browsers or proxy programs.

#!/bin/sh
ADLIST="http://adblock-chinalist.googlecode.com/svn/trunk/adblock.txt http://easylist.adblockplus.org/easylist.txt"

echo -n > /tmp/adblock.txt

for URL in $ADLIST
do
    echo Fetching $URL ...
    curl $URL | grep -v ^$ | grep -v \# | grep -v ^[\!\|@] | grep -v \\$ | sed 's/\./\\./g' | sed s/*/.*/g ...

Idle reminder script for The Hit List

This handy script will remind(disturb?) you every N minutes about what you are doing (if you begin a task in The Hit List) or you are idling right now as Growl notification.

Paste the following code to Script Editor, Save.

try
	tell application "GrowlHelperApp" to register as application "THL Notifier" all notifications {"Doing", "Idle"} default notifications {"Doing", "Idle"} icon of application "The Hit List"
	tell application "System ...

Install multiple versions of Flash plugin for Firefox

As developing ActionScript projects, one have to frequently switch between different Flash versions and test. Here is a tip for Mac OSX ( also works on Windows I think ) to install multiple versions of Flash Player plugins for Firefox.

When Firefox starts, it scans for plugins in 3 sets of directories:

  1. General plugin directory for current system and user, e.g. /Library/Internet Plug-Ins/
  2. Plugin directory for current application ...

TextMate bundle for the haXe Language

It's modified from some post in the haXe mailing list.

Check it out from GitHub.

URL Handler and Bookmarklet for The Hit List

This app will handle x-thl:// links and add task to your inbox of The Hit List

The bookmarklet will use title of web page as title of the task and pick page url and selected text as notes.

THL URL Handler.app.zip - unpack to Applications folder of your Mac

Send to THL - Drag to bookmark bar of your favourite browser 

If you'd like to write your ...