Skip to content

Instantly share code, notes, and snippets.

View jdevera's full-sized avatar

Jacobo de Vera jdevera

View GitHub Profile
@jdevera
jdevera / abspath.py
Created April 20, 2010 18:39
Abspath
#!/usr/bin/python
import os.path
import sys
if len(sys.argv) > 1:
if os.path.exists(sys.argv[1]):
print os.path.abspath(sys.argv[1])
@jdevera
jdevera / ecs.py
Created February 26, 2010 16:24
A replacement for pyaws's ecs.py to make it work with signed requests.
# Author: Kun Xi <[email protected]>
# 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.
@jdevera
jdevera / idf-rm-user.php
Created February 20, 2010 22:56
Delete a user from InDefero
#!/usr/bin/env php
<?php
#
# Delete a user from InDefero.
# Run from the command line and pass a user ID as a parameter.
#
require '/home/www/indefero/src/IDF/conf/path.php';
require 'Pluf.php';
Pluf::start('/home/www/indefero/src/IDF/conf/idf.php');
Pluf_Dispatcher::loadControllers(Pluf::f('idf_views'));