Skip to content

Instantly share code, notes, and snippets.

View stlehmann's full-sized avatar
:bowtie:

Stefan Lehmann stlehmann

:bowtie:
View GitHub Profile
@stlehmann
stlehmann / SimpleTcpRedirector.py
Created February 24, 2021 17:24 — forked from sivachandran/SimpleTcpRedirector.py
A simple TCP redirector in python
#!/usr/bin/env python
import socket
import threading
import select
import sys
terminateAll = False
class ClientThread(threading.Thread):
@stlehmann
stlehmann / MC Cheat Sheet
Last active April 23, 2017 20:10 — forked from samiraguiar/MC Cheat Sheet
Midnight Commander Cheat Sheet
Shortcut Description
---------------------------------------------------------------
C-o Drop to the console
Insert or C-t Select/deselect file
* Invert selection on files
+ Specify file selection options (including custom pattern)
- The same as above, but for deselecting
F5/F6 Copy/move selected files
@stlehmann
stlehmann / .pdbrc.py
Created November 29, 2016 07:46 — forked from justinabrahms/.pdbrc.py
default pdbpp to start with sticky enabled
import pdb
class Config(pdb.DefaultConfig):
sticky_by_default = True
@stlehmann
stlehmann / foo.log
Created October 20, 2016 13:14 — forked from ibeex/foo.log
Flask logging example
A warning occurred (42 apples)
An error occurred