Skip to content

Instantly share code, notes, and snippets.

View SaveTheRbtz's full-sized avatar

Alexey Ivanov SaveTheRbtz

View GitHub Profile
@SaveTheRbtz
SaveTheRbtz / Python_Essential_Reference_errata.rst
Last active October 3, 2015 20:28
My tiny errata for Python Essential Reference

Errata for Python Essential Reference

Fourth Edition (by David M. Beazley)

Chapter 9

p. 170 ++++ I'm myself by no means UTF-8 guru but there is some inconsistency with RFC3629:

@SaveTheRbtz
SaveTheRbtz / linux_tcp_timeout_knobs.patch
Last active June 24, 2021 14:02
On the fly TCP timeout tuning for linux-3.2
commit 99f490afdc91d4965aafd5629567ef02c515e169
Author: Alexey Ivanov <rbtz@yandex-team.ru>
Date: Tue Apr 17 16:55:10 2012 +0400
YANDEX: tcpm: Added TCP sysctl tunables
I made following constants tunable for internal testing:
TCP_DELACK_MIN -> net.ipv4.tcp_delack_min
TCP_DELACK_MAX -> net.ipv4.tcp_delack_max
TCP_ATO_MIN -> net.ipv4.tcp_ato_min
@SaveTheRbtz
SaveTheRbtz / aggregate_filestat.py
Created April 16, 2012 10:46
Linux per-file IO statistics
#!/usr/bin/env python
import logging as log
from fileinput import input
from collections import namedtuple, defaultdict
from pprint import pprint
if __debug__:
log_level = log.DEBUG
else: