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
# Author: Kun Xi <kunxi@kunxi.org> | |
# License: Python Software Foundation License | |
# | |
# Note: This version, 0.3.1, supports the signed requests required | |
# by Amazon. | |
# The changes over 0.3.0 are based on a patch for 0.2.0 found here: | |
# http://blog.umlungu.co.uk/blog/2009/jul/12/pyaws-adding-request-authentication | |
# To make it work, just download pyaws from http://trac2.assembla.com/pyaws | |
# and replace the ecs.py file with this one. |
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 yaml | |
### OrderedDict from <http://pypi.python.org/pypi/ordereddict/1.1> | |
# Copyright (c) 2009 Raymond Hettinger | |
# | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation files | |
# (the "Software"), to deal in the Software without restriction, |
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 | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
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 yaml | |
import yaml.constructor | |
try: | |
# included in standard lib from Python 2.7 | |
from collections import OrderedDict | |
except ImportError: | |
# try importing the backported drop-in replacement | |
# it's available on PyPI | |
from ordereddict import OrderedDict |
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
""" | |
Fabric tunneling utilities | |
by shn@glucose.jp | |
class ForwardServer and relates things are refere Robey Pointer's paramiko example. | |
(http://bazaar.launchpad.net/~robey/paramiko/trunk/annotate/head%3A/demos/forward.py) | |
usage:: | |
with make_tunnel('user@192.168.0.2:10022') as t: |
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
ip=192.168.1.100 sys=laptop ether=001c25123456 | |
dom=laptop.example.com | |
bootf=/386/syslinux/pxelinux.0 |
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
Woof is an amazingly simple and effective file exchange tool: | |
http://www.home.unix-ag.org/simon/woof.html | |
This distribution doesn't include simon Budig's original woof | |
(that started breaking for me), but Edward Samson's fork: | |
https://bitbucket.org/edu/woof | |
Desktop helper scripts: | |
filewoof and folderwoof "open with" actions for nautilus etc. | |
and woofget that runs "woof -U" in a terminal window in /tmp | |
(e.g. for a launcher button) |
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
ssh-keygen -y -f private_key1.pem > public_key1.pub |
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 | |
# first login and store the cookie | |
wget --post-data='name=USERNAME&pass=PASSWORD&op=Log%20in' --save-cookies=my-cookies.txt --keep-session-cookies "https://private.site.com" > /dev/null 2>&1 | |
# now we can scrape the site (353 pages) | |
for i in {0..353} | |
do | |
echo "grabbing page $i..." | |
wget --cookies=on --keep-session-cookies --load-cookies=my-cookies.txt "https://private.site.com/people?page=$i" > /dev/null 2>&1 |
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 | |
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin | |
### Thanks Xream's Work XD | |
# if you don't have several vpn servers to select, you can comment following line | |
# and use your openvpn config file name to replace "${host}.ovpn" in while loop. | |
read -p "Select the host: " host |
OlderNewer