Skip to content

Instantly share code, notes, and snippets.

Backup Cluster configuration - /etc/pve

TL;DR Backup cluster-wide configuration virtual filesystem in a safe manner, plan for disaster recovery for the case of corrupt database. A situation more common than anticipated.


ORIGINAL POST Backup Cluster configuration - /etc/pve

@bpsib
bpsib / BBC-Radio-HLS.m3u
Last active August 1, 2025 18:04 — forked from stengland/BBC-Radio.m3u
BBC Radio Streams
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://as-hls-ww-live.akamaized.net/pool_01505109/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Xtra
http://as-hls-ww-live.akamaized.net/pool_92079267/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1Dance
http://as-hls-ww-live.akamaized.net/pool_62063831/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 1 Anthems (UK Only)
http://as-hls-uk-live.akamaized.net/pool_11351741/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8
#EXTINF:-1,BBC - Radio 2
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@hakerdefo
hakerdefo / byobu_F-keys_in_tty.md
Last active September 19, 2021 03:37
Make Byobu's F-keys keybindings work in virtual console (TTY).

Byobu's F-keys keybindings were not working for me in virtual console a.k.a TTY. However, the Byobu F-keys keybindings were working fine in X Window terminals (LXTerminal, Sakura, Terminology, Xfce-Terminal) under X-Window-System. It was perplexing. 'byobu-keybindings' script written by Byobu author Dustin Kirkland to check the Byobu keybindings was giving me "Byobu keybindings: [ON]" message but F-keys were failing me in virtual console (TTY). Very perplexing indeed, mysterious even. I changed Byobu backend from tmux to screen and back but alas no joy. Google and DuckDuckGo also decided to left me high & dry this time. So it was time for soul-searching and man-page reading. After traveling through a gazillion man-pages, wrestling with escape codes & sequences, here, ladies & gentlemen is the holy grail.

If you use Bash as your login shell, add following code to your ~/.bashrc or /etc/bashrc or /etc/bash.bashrc

shopt -q login_shell
RETVAL=$?
if [[ "$RETVAL" == 0 ]] ; then
export TERM='linux'
else
@Duncaen
Duncaen / nginx.conf
Last active September 27, 2023 15:48
voidlinux nginx caching repository proxy
proxy_cache_path /repo_cache use_temp_path=off keys_zone=repo_cache:5m max_size=20g inactive=7d;
server {
server_name _;
listen 80;
proxy_cache repo_cache;
# if the backend is not reachable use cache
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session

Last updated: 2017-03-18

Searching for Files

Find images in a directory that don't have a DateTimeOriginal

exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .

###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs

@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active June 6, 2025 14:36
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@jsomers
jsomers / websters-kindle.mdown
Created May 19, 2014 01:42
How to make the Webster's 1913 your default Kindle dictionary

How to make the Webster's 1913 your default Kindle dictionary

  1. Download a Kindle-compatible version of the dictionary here. Unzip the .rar archive.

  2. Get the "Send to Kindle" program on your computer. Here's the link for the Mac.

  3. Right-click your recently downloaded (unzipped) dictionary file, and click the "Send to Kindle" menu item. It will arrive on your Kindle shortly.

  4. Once the dictionary has arrived, go to your settings -- on my newish paperwhite, it's at Home > Settings > Device Options > Language and Dictionaries > Dictionaries > English. Choose the Webster's 1913.