Skip to content

Instantly share code, notes, and snippets.

@AaronGhent
AaronGhent / linkdump.py
Created August 23, 2012 00:03
LinkDump
#! /usr/bin/env python
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
# linkdump - crawls a site and generates a list of links
# Author: Aaron Ghent
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
import os
import re
import sys
import urllib2
@AaronGhent
AaronGhent / spinner.py
Created August 23, 2012 00:00
Spinner
#! /usr/bin/env python
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
# Spinner - command line spinning for times of patience
# Author: Aaron Ghent
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
import sys
class Spinner(object):
symbols = list('-\|/')
@AaronGhent
AaronGhent / ssh.py
Created August 22, 2012 23:52
SSH - Python
#! /usr/bin/env python
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
# ssh - simple ssh2 wrapper
# Author: Aaron Ghent
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
#
# import ssh
# client = ssh.Connection(host='example.com', username='root', password='default')
# client.execute('ls')
# client.close()
@AaronGhent
AaronGhent / exacttarget.py
Created August 22, 2012 23:27
ExactTarget API
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
# ExactTarget API
# Author: Aaron Ghent
# Libraries Needed: suds
# CLI Install: ( pip install suds )
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
from django.conf import settings
from suds.client import Client