This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
wget -m -p -E -k -K -np --restrict-file-names=nocontrol http://site/path/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_all_in_document(doc) | |
{ | |
var c = new Array(); | |
c = doc.getElementsByTagName('input'); | |
for (var i = 0; i < c.length; i++) | |
{ | |
if (c[i].type == 'checkbox') | |
{ | |
c[i].checked = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# This is for Py2k. For Py3k, use http.client and urllib.parse instead, and | |
# use // instead of / for the division | |
import sys | |
import httplib | |
import urlparse | |
import re | |
def unshorten_url(url): |