Skip to content

Instantly share code, notes, and snippets.

View spvkgn's full-sized avatar

spvkgn

  • Russia
View GitHub Profile
@spvkgn
spvkgn / build-imagemagick7.sh
Last active August 17, 2020 05:06 — 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