Skip to content

Instantly share code, notes, and snippets.

View spvkgn's full-sized avatar

spvkgn

  • Russia
View GitHub Profile
@spvkgn
spvkgn / Cargo.toml
Last active March 11, 2025 11:07 — forked from ftk/Cargo.toml
http mitm proxy. Simple http proxy to modify Range: http headers. Can be used to speed up youtube in mpv
# To generate mitm cert and key:
# openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -passout pass:"third-wheel" -subj "/C=US/ST=private/L=province/O=city/CN=hostname.example.com"
# see: https://github.com/campbellC/third-wheel
[package]
name = "http-ytproxy"
version = "0.1.0"
edition = "2021"
@spvkgn
spvkgn / build-imagemagick7.sh
Last active June 7, 2024 04:52 — forked from SoftCreatR/README.md
ImageMagick® 7 for Debian/Ubuntu
#!/bin/sh
##############################################################
# Title : build-imagemagick7.sh #
# Description : ImageMagick® 7 for Debian/Ubuntu, #
# including (nearly) full delegate support. #
##############################################################
# Make sure, that we are on Debian or Ubuntu
if ! lsb_release -d | grep -qE 'Ubuntu|Debian'; then
@spvkgn
spvkgn / m3u.py
Last active August 21, 2018 09:46 — forked from jonlabelle/m3u.py
Generate an mp3 playlist file (.m3u), sorted by album track number.
#!/usr/bin/env python3
import os
import sys
import glob
from mutagen.mp3 import MP3
from mutagen.easyid3 import EasyID3
#
# MP3 playlist generator
@spvkgn
spvkgn / suspend-modules
Last active April 6, 2018 11:18 — forked from mauron85/suspend-modules
Ubuntu 16.04 systemd unload modules on sleep
#!/bin/bash
# Put into /lib/systemd/system-sleep/suspend-modules
# chmod a+x /lib/systemd/system-sleep/suspend-modules
# Create /etc/suspend-modules.conf
# with one module per line
# credits to:
# https://bbs.archlinux.org/viewtopic.php?pid=1540125#p1540125