Skip to content

Instantly share code, notes, and snippets.

@mjangda
mjangda / sync-svn-folders.sh
Created December 30, 2011 16:35
Sync files between two SVN folders
#!/bin/bash
# Script Name: Sync SVN folders
# Description: Use this script to sync changes from one SVN folder to another. A common use is syncing between prod and preprod repos.
# Tags: svn, sync
# Usage: ./sync-svn-folders.sh /path/to/from-repo /path/to/to-repo
FROM_REPO=$1
TO_REPO=$2
# Check that we don't have empty paths
@huyng
huyng / reflect.py
Created February 7, 2011 17:57
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):