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 | |
## | |
# Bash script to sync the contents of a GIT repo to an SVN one. | |
# Created because the git-svn method has its problems (only manually resolvable conflicts during rebase) | |
# This is just a plain content-overwrite, and proper removal of emptied directories | |
## | |
GIT_REPO_PATH=/define/me | |
SVN_REPO_PATH=/define/me |
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
## | |
# Ruby script to find top-level empty directories in a working SVN directory tree | |
# | |
# A directory is considered empty, if there are zero files reachable through this directory (excluding | |
# files under .svn directories). That means that a directory containing other empty directories is | |
# also empty (recursively). The algorithm will consolidate the output so that it only contains | |
# top-level empty directories, but not their sub-directories. | |
# | |
# The output of this script can be used, for example to remove non-used parts of a SVN repository: | |
# ruby empty_dirs.rb | xargs svn del |
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
# Available versions: http://downloads.eucalyptus.com/software/euca2ools/2.0/source/ | |
export VERSION="2.0.0" | |
export WORKING_DIR=~/Downloads/euca2install | |
mkdir -p ${WORKING_DIR} | |
cd ${WORKING_DIR} | |
# install dependencies | |
# you can also use port instead: sudo port install swig-python | |
brew install swig |
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
/** | |
* Real keep-alive HTTP agent | |
* | |
* ------------=================---------------- | |
* UPDATE: There are more proper implementations for this problem, distributed as | |
* npm modules like this one: https://github.com/TBEDP/agentkeepalive | |
* ------------=================---------------- | |
* | |
* The http module's agent implementation only keeps the underlying TCP | |
* connection alive, if there are pending requests towards that endpoint in the agent |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Attila Incze <http://atimb.me> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |