Skip to content

Instantly share code, notes, and snippets.

View i5heu's full-sized avatar
🌈
Keep coding!

Mia Heidenstedt i5heu

🌈
Keep coding!
View GitHub Profile
@i5heu
i5heu / ipfs-cluster-service
Last active May 13, 2020 06:33
ipfs-node.sh
[Unit]
Description=IPFS main cluster
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/home/ipfs/ipfs-cluster-follow/ipfs-cluster-follow main-cluster run
Restart=on-failure
[Install]
WantedBy=multi-user.target
[Unit]
Description=IPFS daemon
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/usr/local/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target
from https://www.matuzo.at/blog/html-boilerplate/
apt update && apt full-upgrade -y && apt install -y nginx
@i5heu
i5heu / gist:f2f4b63930ed039941b93b8783c54e70
Created April 28, 2024 19:54
FFmpeg Bash to turn a 5.1 mkv into a 2.1 mkv. It extracts the original 5.1 audio, creates a stereo downmix, and adds a compressed & enhanced 2.1 track for improved dialogue clarity. Ideal for enhancing audio intelligibility in media files. Will also give the new mkv the name of the folder the original mkv is in.
#!/bin/bash
# Check if the input file is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input.mkv>"
exit 1
fi
input="$1"
# Ensure the input path is absolute to avoid errors in path handling