Skip to content

Instantly share code, notes, and snippets.

View atimb's full-sized avatar

Attila Incze atimb

View GitHub Profile
@atimb
atimb / git2svn.sh
Last active December 10, 2015 21:38
Bash script to sync the contents of a GIT repo to an SVN one.
#!/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
@atimb
atimb / find-empty-dir-in-svn.rb
Last active May 10, 2018 22:52 — forked from mfn/find-empty-dir-in-svn.rb
Ruby script to find top-level empty directories in a working SVN directory tree (forked and fixed because original script was not properly working for more complicated directory structure)
##
# 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
@atimb
atimb / install_euca2ools.sh
Created November 7, 2012 22:51 — forked from fairchild/install_euca_tools.sh
Script to install euca2ools from source, tested on Mac OS X 10.7.5 Lion. Please report bugs.
# 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
@atimb
atimb / agent.js
Last active May 16, 2023 12:20
Real keep-alive HTTP agent for node.js
/**
* 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
@atimb
atimb / LICENSE.txt
Created December 8, 2011 23:32 — forked from 140bytes/LICENSE.txt
Snake game in 140byt.es
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