Skip to content

Instantly share code, notes, and snippets.

View OffsetMonkey538's full-sized avatar

OffsetMonkey538 OffsetMonkey538

View GitHub Profile
@OffsetMonkey538
OffsetMonkey538 / GPG Key setup for SSH and Git.md
Last active April 3, 2026 09:34
GPG Key setup for SSH and Git

GPG Key setup for SSH and Git

Generating the master key

The master key should only have the Certify capability, which we will use for creating subkeys.

Run the gpg --full-generate-key --expert command to start key generation. Select the ECC (set your own capabilities) key type, which currently is option nr 11.

> gpg --full-generate-key --expert
gpg (GnuPG) 2.4.9; Copyright (C) 2025 g10 Code GmbH
[Unit]
Description=Run /etc/backup/backup.sh script to backup user files to NAS
Requires=network-online.target
After=network-online.target
[Service]
TimeoutStopSec=infinity
Type=oneshot
# Runs at startup
@OffsetMonkey538
OffsetMonkey538 / encode-yt-video.sh
Created July 1, 2024 10:02
Bash script for encoding a video into the youtube recommended encoding settings using ffmpeg and VAAPI. Tested on AMD Radeon 6750 XT gpu
#!/bin/bash
###################################
# Help #
###################################
Help()
{
# Display Help
echo "Usage:"
echo " encode-video --input ~/recording.mkv --output ~/encoded-video.mp4"