Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Infrant Widget Patch to add support for BitTorrent Add-on

// This requires the BitTorrent add-on from RAIDiator 4.00c1-p2.
// This adds the following functionality to the widget:
// Adds a button on the back of widget to connect to bittorrent admin interface on port 8080.
// Adds drag-and-drop support to allow multiple torrents to be added from local filesystem.

curl http://www.infrant.com/beta/raidar/RAIDar.wdgt -o RAIDar.wdgt.zip
curl -O http://speedbinge.com/code/RAIDar_bt.patch
unzip RAIDar.wdgt.zip
patch -p0 < RAIDar_bt.patch
open RAIDar.wdgt

"Digg this page" XSS

// To include the nice little live-updated Digg widget

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>