Code Library

.NET

If you (well, me; let's face it - I'm the only one listening) can't be bothered to remember a few simple lines of .NET code, then you might find them here...

Web

  • referrertest.aspx - A handy utility for causing your browser to request a page of your choice with a Referrer header. 
  • base64.aspx - A even handier utility: encode/decode base 64 strings.

T-SQL

Windows Tricks

  • When you see a SID in the registry under HKEY_USERS, how do you know which user account it corresponds to?  Look for the SID in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.  If the account has a user profile then you should see a key for it there, and the ProfileImagePath value should give you the username.

©2009 Carl Johansen