Fork me on GitHub
Its the Code garbage collector. Mind dumps of daily coding antics from a frustrated silly little man. VBS, PHP, TCL, TK, PERL, C++, JAVA....what now? Ruby?
No Wait.. It should be just RUBY!


Gmail HTML Signatures - GreaseMonkey script

So of course you cant create html signatures in gmail... ergg!

Silly rabbit, you can drag and drop images/html into the gmail Richtext editor...
well that just will not do.

So that would mean - greasemonkey script! Im not going to waste any time here.
GMAIL HTML SIGNATURE - Install this Script
// Released under the CC Attribution 2.5 license
// --------------------------------------------------------------------
// This is a Greasemonkey user script.
// To setup, insert html signature code into:
// * html_signature
// --------------------------------------------------------------------
// ==UserScript==
// @name GMAIL HTML Signature
// @namespace
// @description Insert HTML signature into GMAIL
// @include*
// @include*
// @include*
// @include*
// ==/UserScript==
var html_signature = '<div style="margin: 0 auto 0 auto; margin-top: 5px; margin-bottom: 5px;" >' +
'<a href="">' +
'<img src="" style="border:0" alt="codeBurst"/>' +

window.setTimeout(function() {
//Debug Frame window
// alert(window.frames[0].name);
if (window.frames[0])
if (window.frames[0].name == "v2_hc_compose")
var logo = window.frames[0].document.createElement("div");
logo.innerHTML = '<br><br>' + html_signature
}, 600);

20070212 Regex

I was working on bring in my collection of bookmarks for use on There is still some work to be done on web interface, and most of the API apps that I used just didnt fit the bill so some quick regex helped with importation and exportation.

Main use for this was to enable sharing on all imported bookmarks.

So we need some regex for implementations on the api. can read and export Netscape bookmark files.

<meta equiv="Content-Type" content="text/html; charset=UTF-8">
</p><dt><a href="" last_visit="117002438" add_date="117002438" tags="wee,w00t">test test</a>

These can very easily be modified via regex to work as api calls
Example API calls test&tags=wee%20w00t&replace=yes&shared=yes

Regex Convertion for
(<dt><a href="*%29%28" tags=")(.*)(">)(.*)(</a></dt>)\2&description=\6&tags=\4&replace=yes&shared=yes


Dirty Listing of Nessus Dangerous Plugins

Tenable Nessus .. needed dangerous plugins descriptions

cd \progra~1\tenable\nessus\plugins\scripts\
egrep -l egrep -l "(ACT_DESTRUCT|ACT_DENIAL)" *.nasl>c:\temp\dangerous_list.txt

Quick vbs file..
Copy files from list in files to temp.

Dim objFileSystem, objInputFile, fso, aFile, afilename
Dim strInputFile, inputData, strData, strListFile, i


' generate a filename base on the script name, here
strListFile = "c:\temp\dangerous_list.txt"

Set objFileSystem = CreateObject("Scripting.fileSystemObject")
Set objInputFile = objFileSystem.OpenTextFile(strListFile, OPEN_FILE_FOR_READING)

' read everything in an array
afilename = "c:\progra~1\tenable\nessus\plugins\scripts\"

Do While Not objInputFile.AtEndOfStream
Dim Line
Line = objInputFile.readline
' Do something with "Line"
Set fso = CreateObject("Scripting.FileSystemObject")
Set aFile = fso.GetFile(afilename & trim(Line))
aFile.Copy("c:\temp\scripts\" & trim(Line))
Set aFile = Nothing
Set fso = Nothing

Set objFileSystem = Nothing


Grab nessus extract tool via wget
Dump info to file .. done.


perl -p "c:\temp\scripts" >c:\temp\Dangerous_Plugins.txt