Skip to content

Instantly share code, notes, and snippets.

Attila Incze atimb

Block or report user

Report or block atimb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@atimb
atimb / git2svn.sh
Last active Dec 10, 2015
Bash script to sync the contents of a GIT repo to an SVN one.
View git2svn.sh
#!/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 — 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)
View find-empty-dir-in-svn.rb
##
# 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 Nov 7, 2012 — 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.
View install_euca2ools.sh
# 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 Dec 9, 2015
Real keep-alive HTTP agent for node.js
View agent.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 Dec 8, 2011 — forked from 140bytes/LICENSE.txt
Snake game in 140byt.es
View LICENSE.txt
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
You can’t perform that action at this time.