Skip to content

Instantly share code, notes, and snippets.

@etesor
etesor / .tmux.conf
Created February 28, 2026 04:09
Clean tmux config
# ============================================
# ESSENTIAL SETTINGS
# ============================================
# Increase scrollback buffer
set -g history-limit 50000
# Enable mouse support
set -g mouse on
@etesor
etesor / text_editor.py
Created February 25, 2021 03:50
Simple func to edit workds in txt files. Can save some time of Excel clicking.
def replace_text(old, new, infile):
L = []
outputfile = 'new_' + infile
with open(str(infile), 'r') as f:
for line in f:
L.append(line.replace(old, new))
with open(outputfile, 'w') as f:
for i in L:
f.write(i + '\n')