- 1 - 35aH deep cycle battery (Werker WKDC12-35J)
- 2 - Battery Tender ring terminal to 2-pin quick disconnect (http://www.amazon.com/gp/product/B000NCOKZQ/)
- 2 - Battery Tender female cigarette adapter for quick disconnect (http://www.amazon.com/gp/product/B0041CDPQO/)
- 1 - Battery Tender Jr. 12V charger (http://www.amazon.com/gp/product/B000CITK8S/)
- 1 - 20W Instapark solar panel (http://www.amazon.com/gp/product/B004FX1192/)
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
import os | |
import sys | |
import difflib | |
import requests | |
import socket | |
def get_html(domain): | |
if domain is None: return None | |
try: | |
print '\tGetting {0}'.format(domain) |
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
import requests | |
import oauth | |
class Twitter(): | |
def __init__(self): | |
self.consumer_key = '' | |
self.consumer_secret = '' | |
self.token = '' | |
self.token_secret = '' |
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
/* | |
Why does the first function work properly but the second does not? The second one fails | |
because the file variable does not get properly passed to testExt. | |
*/ | |
/* Example 1 */ | |
function listFiles(err, files) { | |
if (err) throw err; | |
files.forEach(function (file) {testExt(file);}); | |
} |
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 | |
import requests | |
import sys | |
def get_redirect(url): | |
# Access the URL and process the set-cookie header value. | |
try: | |
resp = requests.get(url, timeout=10, allow_redirects=False) | |
except: |
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
URL Status_Code Body_Size | |
http://google.com 301 219 | |
http://facebook.com 301 0 | |
http://youtube.com 301 0 | |
http://yahoo.com 301 211 | |
http://wikipedia.org 301 233 | |
http://live.com 301 0 | |
http://twitter.com 301 0 | |
http://qq.com 302 161 | |
http://amazon.com 301 230 |
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/sh | |
servers="address1 address2" | |
for server in $servers; | |
do | |
echo "Getting version information for $server." | |
resp=`curl -k https://$server:8834/feed 2>/dev/null` |
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
# In your .bashrc file you need to export the BURP_SERVER and BURP_PORT environment | |
# variables. You can change the server and port by exporting new values before | |
# running the shell script. | |
export BURP_SERVER='127.0.0.1' | |
export BURP_PORT='8080' |
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
var fs = require('fs'); | |
var readline = require('readline'); | |
var http = require('http'); | |
var timeout = 2; // Timeout in seconds. | |
var rd = readline.createInterface({ | |
input: fs.createReadStream('tenthousand_urls.txt'), | |
output: process.stdout, | |
terminal: false | |
}); |
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 | |
# | |
# The requests module is probably already on your system. If it is not | |
# the run: easy_install requests | |
# | |
import sys | |
import requests | |
def checkUrl(url): | |
try: |
OlderNewer