Skip to content

Instantly share code, notes, and snippets.

View mrtnvgr's full-sized avatar
🧑‍🍳

Егор Мартынов mrtnvgr

🧑‍🍳
View GitHub Profile
@mrtnvgr
mrtnvgr / nampack.py
Created August 29, 2026 17:32
Pack multiple .nam files to one
#!/usr/bin/env python3
# This is a script that takes advantage of `Slim` knob for making NAM files with multiple models.
#
# It's pretty useful for packing a directory of captures into one file. (e.g. "Gain 1", "Gain 2", "Gain 3" amp pack).
# Try packing captures with different boosts, or various tones from hi-gain to clean to make a portable rig in one NAM file =)
#
# == Caveats ==
#
# - When model switch happens, expect clicks and pops.
@mrtnvgr
mrtnvgr / find_v1.py
Last active August 20, 2026 20:52
Find NAM V1 captures in current directory
#!/usr/bin/env python3
from pathlib import Path
import json
for file in Path(".").rglob("*.nam"):
nam = json.load(open(file))
if nam["architecture"] != "SlimmableContainer":
print(file)
@mrtnvgr
mrtnvgr / wav2flac.sh
Created June 9, 2026 08:55
WAVE files to FLAC
find . -name "*.wav" | parallel --bar "ffmpeg -i {} -map_metadata 0 {.}.flac && rm {}"
// v10
// === DESKTOP ONLY ===
audiodriver alsa
buffer 256
// ====================
startmsg 1
locale_lang en_US
@mrtnvgr
mrtnvgr / vk_music_cleaner.py
Last active May 1, 2026 08:38
[VK Music] Delete all tracks from artists
"""
Install dependencies:
pip install git+https://github.com/voronind/vk beautifulsoup4
Working as of May 1, 2026
"""
from collections import defaultdict
from vk import API
import os
@mrtnvgr
mrtnvgr / flac2ogg.sh
Created April 17, 2026 15:11
FLAC to 192k Opus
find . -name "*.flac" | parallel --bar "ffmpeg -i {} -c:a libopus -b:a 192k -map_metadata 0 {.}.opus && rm {}"
@mrtnvgr
mrtnvgr / gimmetor.py
Created March 13, 2026 10:06
Connect to the first available local proxy through torsocks
#!/usr/bin/env python3
"""
Usage: $(gimmetor.py)
"""
from ipaddress import ip_network
import concurrent.futures
import subprocess
import socket
@mrtnvgr
mrtnvgr / tories.py
Created March 13, 2026 09:29
Find Tor proxies in local network
#!/usr/bin/env python3
import socket
import concurrent.futures
import argparse
import ipaddress
import subprocess
import re
def get_local_network():
result = subprocess.run(["ip", "route"], capture_output=True, text=True)
@mrtnvgr
mrtnvgr / udars.py
Last active May 1, 2026 08:39
Тренер ударений для ЕГЭ 2026
# Простой скриптик для тренировки ударений
# Банк взят с навигатора подготовки ФИПИ 2026
# Some common sense words were removed
# License: Unlicense
# UPDATE: Anki is a better solution for this, please use it.
#!/usr/bin/env python3
import random