Skip to content

Instantly share code, notes, and snippets.

@sergeylukin
sergeylukin / post-receive
Last active Apr 27, 2018
Git hook (post-receive): update working tree on PUSH
View post-receive
#!/bin/sh
#
# This hook is placed in Bare repository and it updates Working tree whenever a PUSH
# is executed
#
# Assuming following file structure:
# .
# |-- myproject
# |-- myproject.git
# set WORKTREE=../myproject
@majek
majek / proxy.py
Created Jan 23, 2012
Python asyncore based tcp proxy
View proxy.py
import asyncore
import errno
import os
import socket
import logging
import threading
log = logging.getLogger('tcp_proxy')
_map = {}
@brendano
brendano / autolog.py
Created Oct 10, 2008
python decorators to log all method calls, show call graphs in realtime too
View autolog.py
# Written by Brendan O'Connor, brenocon@gmail.com, www.anyall.org
# * Originally written Aug. 2005
# * Posted to gist.github.com/16173 on Oct. 2008
# Copyright (c) 2003-2006 Open Source Applications Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
You can’t perform that action at this time.