Skip to content

Instantly share code, notes, and snippets.

@t-mat
t-mat / hammerwatch-assets-bin-unpacker.ps1
Created January 4, 2014 18:24
Hammer Watch assets.bin unpacker
<# /*
unpack 'C:\Program Files (x86)\Steam\steamapps\common\Hammerwatch\assets.bin'
+0 int8[4] 'HWRA' 0x48, 0x57, 0x52, 0x41
+4 int32 number of files
+8 file #0
file
+0 int8 filename_len
@estliberitas
estliberitas / reset.js
Created January 3, 2013 23:27
Node.js script which makes Tor change identity (i.e. IP address)
/**
* Created with IntelliJ IDEA.
* User: Alexander <estliberitas> Makarenko
* Date: 04.01.13
* Time: 3:25
*/
'use strict';
var fs = require('fs')
, net = require('net')
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"