IIS 6.0 Redirect HTTP to HTTPS javascript

To redirect in IIS 6.0 using pure javascript create a file called “redirect.htm” and have IIS6 listen on port 80 and redirect to that file:

function redirectToHttps() { var httpURL = window.location.hostname+window.location.pathname; var httpsURL = “https://” + httpURL ; window.location = httpsURL ; } redirectToHttps(); . . . → Read More: IIS 6.0 Redirect HTTP to HTTPS javascript

Command Line TCPDUMP windows

Using TCP DUMP on windows

This will cover how to use command line TCPDUMP on Windows.

Software Windump Winpcap Examples windump.exe -Ap -s65535 port 80 > c:\example_dump.txt

psexec icacls remote computer

Set proper permissions in IIS 7.x on a remote computer

We will be using psexec icacls on the remote comptuer

Objective: Grant NT AUTHORITY\NetworkService the proper permissions for a particular website on “somecomputer” using credentials “somedomain\someuser somepassword”

The Command to Run psexec -u somedomain\someuser -p somepassword -e \\somecomputer cmd /c (^ mkdir c:\temp1\Common ^ & . . . → Read More: psexec icacls remote computer

join mp3 files single file

Goal: join mp3 files single file

Download mp3wrap


mp3wrap is cross-platform (Windows, Linux, and Mac).


Download from sourceforge here


You will need to use Mac Ports and run command:

sudo port install mp3wrap Linux – Ubuntu sudo apt-get install mp3wrap Linux – CentOS yum install mp3wrap Using mp3wrap

In this example we . . . → Read More: join mp3 files single file

Trace ASP.NET Application

You’ll need to edit the web.config


Place the following after system.web tag:

Trace ASP.NET Application

Those options only allow you to see the trace from the server itself. RDP in to the server

Connect to:


Apache Active Directory Authentication howto

Apache Active Directory Authentication howto

Modules Needed


Install mod_authz_ldap yum install mod_authz_ldap Verify Apache Config has Needed Modules LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so Apache Group LDAP Configuration (Active Directory Group Level Auth) AuthBasicProvider ldap AuthzLDAPAuthoritative On AuthLDAPURL ldap://,dc=com?sAMAccountName . . . → Read More: Apache Active Directory Authentication howto

Enable Updates Adobe Acrobat X

To enabled updating on Adobe Acrobat X you need to modify this registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Adobe Acrobat\10.0\FeatureLockDown Change “bUpdater” = 1

firefox keeps crashing fixed

If you are on Windows Vista/7 and notice Firefox 13 constantly crashing the culprit is the new “Protection Mode” (which makes flash run in a sandbox).

To disable this you need to append “ProtectedMode=0” to the flash config file “mms.cfg”

Detailed Instructions STEP 1: Open Administrative Command Prompt Click Start. In the Start Search . . . → Read More: firefox keeps crashing fixed

hudson svn windows auth cache fix

Example error when attempting to update the svn credentials on hudson for windows:

hudson svn windows “the request doesn’t contain a multipart/form-data or multipart/mixed stream”

To fix this download svnkit- to your hard disk. Login to computer hosting hudson as the user that hudson runs as. For example, if hudson runs under tomcat and tomcat . . . → Read More: hudson svn windows auth cache fix

Reset Active Directory Password Script

This isn’t so much a script as an awesome way to reset an active directory user’s password.

Requirements You must have admin rights to domain controller psexec How to Reset Active Directory User’s Password from Command Line

In this case you would need to be on the domain controller to run this:

DSQUERY USER -samid . . . → Read More: Reset Active Directory Password Script