This file contains hidden or 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 boto | |
>>> boto.set_stream_logger('foo') | |
>>> ec2 = boto.connect_ec2(debug=2) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/lib/pymodules/python2.6/boto/__init__.py", line 113, in connect_ec2 | |
return EC2Connection(aws_access_key_id, aws_secret_access_key, **kwargs) | |
File "/usr/lib/pymodules/python2.6/boto/ec2/connection.py", line 79, in __init__ | |
https_connection_factory, path) | |
File "/usr/lib/pymodules/python2.6/boto/connection.py", line 498, in __init__ |
This file contains hidden or 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
function usage() { | |
echo ".$0 --argument=foo --argument-two=bar" | |
exit 1 | |
} | |
while [ "$1" != "" ]; do | |
param=${1%=*} | |
value=${1#*=} | |
case $param in | |
--argument) argument=$value |
This file contains hidden or 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
#ifdef DEBUG | |
#define _DEBUG(fmt, args...) printf("%s:%s:%d: "fmt, __FILE__, __FUNCTION__, __LINE__, args) | |
#else | |
#define _DEBUG(fmt, args...) | |
#endif |
This file contains hidden or 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
# | |
# c - bash directory changing functions that maintain a | |
# most-recently used stack. | |
# | |
# Run with -help as an argument to see invocation options, or find the | |
# d_usage function below. | |
# | |
# To use these functions, store this in a file someplace and | |
# then execute | |
# |
This file contains hidden or 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 | |
# Author: Justin Lintz | |
# usage: ./focal_length dir | |
# Requiresments: dcraw http://www.cybercom.net/~dcoffin/dcraw/ | |
import os | |
import sys | |
from subprocess import Popen, PIPE | |
from operator import itemgetter | |
focals = {} |
NewerOlder