Skip to content

Instantly share code, notes, and snippets.

View geekgonecrazy's full-sized avatar
🚀
Building and Launching!

Aaron Ogle geekgonecrazy

🚀
Building and Launching!
View GitHub Profile
@geekgonecrazy
geekgonecrazy / HE.net ipv6 tunnel end
Created March 23, 2011 02:59
Bash script update he ipv6 tunnel info
#!/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>
@geekgonecrazy
geekgonecrazy / interfaces
Last active September 25, 2015 08:18
IPv6 network configuration /etc/network/interfaces
# 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 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;
@geekgonecrazy
geekgonecrazy / ircbot.py
Created June 4, 2011 23:31
added a thread... lots of work todo
#!/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:
<?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);
@geekgonecrazy
geekgonecrazy / browser.py
Created August 26, 2011 20:58
webkit based browser
#!/bin/python
import gtk
import webkit
import urllib
def homeclicked(btn):
view.open("https://10.10.10.48")
def title_changed(webview, frame, title):
@geekgonecrazy
geekgonecrazy / linkexpand.py
Created August 27, 2011 06:53
Short URL link Expander
#!/bin/python
##########################
# #
# Created by: Aaron Ogle #
# #
##########################
from sys import argv
import urllib2
import gtk
@geekgonecrazy
geekgonecrazy / ExportPNG.jsx
Created August 17, 2012 21:38
Illustrator script to export artboard to png then create thumbnail in photoshop.
/*
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;
@geekgonecrazy
geekgonecrazy / ipextract.py
Created October 9, 2012 19:48
IP extract
#!/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")
@geekgonecrazy
geekgonecrazy / nginxconfig
Created October 31, 2012 21:15
nginx proxy pass for node apps
# 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;