Skip to content

Instantly share code, notes, and snippets.

View vitkin's full-sized avatar

Victor Itkin vitkin

View GitHub Profile
@vitkin
vitkin / aws-ecs-connect
Last active October 31, 2022 11:12
AWS ECS Connect
#!/usr/bin/env bash
# shellcheck enable=require-variable-braces
set -e
while [ ${#} -ne 0 ]; do
case ${1} in
-c) ;&
--cluster)
CLUSTER="${2?'cluster: argument not set'}"
shift ;;
@vitkin
vitkin / aws-ecs-tunnel
Last active October 31, 2022 11:28
AWS ECS Tunnel
#!/usr/bin/env bash
# shellcheck enable=require-variable-braces
set -e
while [ ${#} -ne 0 ]; do
case ${1} in
-c) ;&
--cluster)
CLUSTER="${2?'cluster: argument not set'}"
shift ;;
@vitkin
vitkin / README.md
Last active August 5, 2021 19:19
Backport WebSocket to Apache 2.2 that doesn't modify the 'mod_utils.c' and the 'mod_proxy.h'. See the 'README.md' for details and instructions.

Backport WebSocket to Apache 2.2

This is my variation from the original patch and that also includes the suggested correction for the bug with secure websocket 'wss://'.

The difference is that I avoid modifying the mod_utils.c and the mod_proxy.h so that if the mod_proxy module has been embedded in the main httpd binary then it will work and you won't get the

@vitkin
vitkin / git-p4.py.patch
Last active August 26, 2021 09:30
"git-p4" - Exclude files for extensions
770a771,782
> def p4PathEndsWith(path, suffix):
> # This method tries to remedy a potential mixed-case issue:
> #
> # If UserA adds //depot/DirA/file1
> # and UserB adds //depot/dira/file2
> #
> # we may or may not have a problem. If you have core.ignorecase=true,
> # we treat DirA and dira as the same directory
> if gitConfigBool("core.ignorecase"):
@vitkin
vitkin / git cvsimport jalopy
Last active December 12, 2015 09:19
Converting Jalopy CVS modules to Git repositories.
mkdir jalopy
cd jalopy
cat > authors.txt << EOF
marcohu = Marco Hunsicker <marcohu@users.sourceforge.net>
rcleveng = Rob Clevenger <rcleveng@users.sourceforge.net>
scheruga = Horst Scheruga <scheruga@users.sourceforge.net>
notzippy = Steve Heyns <notzippy@users.sourceforge.net>
alen_vrecko = Alen Vrecko <alen_vrecko@yahoo.com>
EOF
@vitkin
vitkin / Apache-Commons-BECL-Git-SVN.textile
Last active December 11, 2015 18:58
Wiki page on how to convert Apache BCEL Subversion repositories to a Git bare repository managed by Gitolite that can still stay in sync with the Subversion repository by doing a "git svn fetch" directly on the Git bare repository. It is intended for a project that uses modified sources from BCEL in order to ease the merging.

How to synchronize with Subversion

By running:

$ svn log —stop-on-copy http://svn.eu.apache.org/repos/asf/commons/proper/bcel

We know that starting revision 1149512 it was moved from “jakarta” to “commons/proper”.

By running:

$ svn log —stop-on-copy http://svn.eu.apache.org/repos/asf/jakarta/bcel@1149511

We learn that the 1st commit was at revision 152684.
We can also open the URL http://svn.eu.apache.org/repos/asf/!svn/bc/1149511/jakarta/bcel to check that revision