Skip to content

Instantly share code, notes, and snippets.

version: '3'
services:
umurmur:
image: hetsh/umurmur:0.2.17-4
volumes:
# PERSISTENT DATA
- ./data:/etc/umurmur
- ./umurmur.conf:/etc/umurmur.conf:ro
# TIMEZONE
- /etc/localtime:/etc/localtime:ro
@bodziek666
bodziek666 / bash_strict_mode.md
Created December 14, 2020 20:55 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o pipefail explanation

set -e, -u, -o pipefail

The "set" lines These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing. With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.

set -euo pipefail is short for:

set -e
set -u
@bodziek666
bodziek666 / flexgetctl
Last active November 19, 2021 18:52
Manage Flexget daemon which is running inside a separated network namespace
#!/bin/bash
set -euo pipefail
NETNS="torrent"
FLEXGETDIR="/opt/flexget"
# sanity check
if [ $# -gt 1 ]; then
echo "Too many arguments"
### VIDEO ###
# see: https://mpv.io/manual/stable/#video-output-drivers
# see: https://mpv.io/manual/stable/#profiles
vo=gpu
profile=gpu-hq
# "Reduce stuttering caused by mismatches in the video fps and display refresh rate (also known as judder)."
interpolation
# see: https://mpv.io/manual/stable/#gpu-renderer-options
scale=ewa_lanczossharp
#!/bin/sh
#
# s3fs - FUSE-based file system backed by Amazon S3
#
# Copyright 2007-2008 Randy Rizun <[email protected]>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
@bodziek666
bodziek666 / 99-noto-mono-color-emoji.conf
Created March 10, 2021 22:30 — forked from IgnoredAmbience/99-noto-mono-color-emoji.conf
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
@bodziek666
bodziek666 / blog20200219-01.sh
Created August 1, 2021 15:27 — forked from haproxytechblog/blog20200219-01.sh
Load Balancing PHP-FPM with HAProxy and FastCGI
$ sudo apt update
$ sudo apt install php-fpm
@bodziek666
bodziek666 / flexget.service
Last active February 17, 2022 23:41
Transmission Daemon with Wireguard on separated netns managed by systemd units
# /etc/systemd/system/flexget.service
[Unit]
Description=FlexGet Daemon
# network namespace
[email protected]
[email protected]
# cnfiguration of network interface assiciated with network namespace
BindsTo=wg-torrent-netns.service
### VIDEO ###
# see: https://mpv.io/manual/stable/#video-output-drivers
# see: https://mpv.io/manual/stable/#profiles
vo=gpu
profile=gpu-hq
# "Reduce stuttering caused by mismatches in the video fps and display refresh rate (also known as judder)."
interpolation
# see: https://mpv.io/manual/stable/#gpu-renderer-options
scale=ewa_lanczossharp