Skip to content

Instantly share code, notes, and snippets.

View saponace's full-sized avatar

Rémi Somdecoste-Lespoune saponace

View GitHub Profile
@saponace
saponace / docker-compose-with-traefik.yml
Last active May 15, 2020 13:43
Docker compose service with "network_mode: service: [...]" does not inherit parent's service networks
version: "3.8"
networks:
web:
name: web
services:
whoami:
container_name: whoami
image: containous/whoami:v1.5.0
@saponace
saponace / git-log-release.sh
Created April 29, 2020 12:25
Get git changes between two tags (or commits)
git log --pretty=format:%s v0.3.3..v0.4.0 | egrep -v "^Merge.*" | xargs -I '{}' echo "* {}"
@saponace
saponace / hyperion.config.json
Last active January 17, 2020 19:15
Setup Kodi media center connected to Emby Server
// Automatically generated configuration file for Hyperion ambilight daemon
// Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
// Generated by: HyperCon (The Hyperion deamon configuration file builder)
// Created with HyperCon V1.03.3 (22.10.2017)
{
// DEVICE CONFIGURATION
"device" :
{
"name" : "MyHyperionConfig",
@saponace
saponace / LUKS + ext4 on one disk
Last active May 25, 2019 23:29
RAID1 disk setup
Let /dev/sdb be the disk.
# Create partition
sudo cfdisk /dev/sdb -> cerate partition /dev/sdb1
# Initialize disk data with random bits
sudo shred --verbose --random-source=/dev/urandom --iterations=3 /dev/sdb1
# Create the cryptographic device (leave hash and iter-time to default values if the drive will be mounted on a slow device)
sudo cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 luksFormat /dev/sdb1
# Open device
sudo cryptsetup open --type luks /dev/sdb1 DEVSDB1