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/bash | |
# | |
#Script to update ip on Hurricane Electric every 30 minutes | |
#@author Aaron Ogle | |
#Variables | |
HE_userid=<userid> | |
HE_passwd=<passwordhash> #echo -n "yourpassword" | md5sum | |
HE_tunnelid=<tunnelid> |
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
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto eth0 | |
iface eth0 inet dhcp | |
# Primary network interface ipv6 settings | |
# This isn't needed if you are only connecting out with this machine. |
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
/* | |
This program demonstrates a parser | |
*/ | |
import java.io.*; | |
import java.io.IOException; | |
import javax.swing.*; | |
import java.util.*; | |
import java.io.File; | |
import java.io.FileNotFoundException; |
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 sys, socket, string, time, os, ssl, threading | |
from cmd import Cmd | |
USING_READLINE = True | |
try: | |
# For platforms without readline support go visit ... | |
# http://pypi.python.org/pypi/readline/ | |
import readline | |
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
<?php | |
//Download and hit counter script. | |
//@Author: Aaron Ogle | |
$file = $_GET['f']; | |
if(ini_get('zlib.output_compression')) | |
ini_set('zlib.output_compression', 'off'); | |
// Prevent downloading any file | |
$file = str_replace(array("/", ".."), "", $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
#!/bin/python | |
import gtk | |
import webkit | |
import urllib | |
def homeclicked(btn): | |
view.open("https://10.10.10.48") | |
def title_changed(webview, frame, title): |
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/python | |
########################## | |
# # | |
# Created by: Aaron Ogle # | |
# # | |
########################## | |
from sys import argv | |
import urllib2 | |
import gtk |
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
/* | |
Script to Export Illustrator files as PNG's then make a thumbnail. | |
Runs in CS5 only | |
Overdocumented so that I know what the heck is going on if I have to look at it again. | |
*/ | |
//Disable Alerts. We want this to be as unobtrusive as possible. | |
app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS; |
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/python | |
################################### | |
#Author: Aaron Ogle # | |
#Function: Extract ips from list.# | |
################################### | |
import sys | |
if len(sys.argv) > 1: | |
try: | |
file_ips = open(sys.argv[1], "r") |
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
# the nginx server instance | |
server { | |
server_name nodeserver.com; | |
access_log /var/log/nginx/fm-node.log; | |
# pass the request to the node.js server with the correct headers and much more can be added, see nginx config options | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; |
OlderNewer