Skip to content

Instantly share code, notes, and snippets.

View brandon-welsch's full-sized avatar

Brandon Welsch brandon-welsch

View GitHub Profile
@Ast3risk-ops
Ast3risk-ops / cloudflared.service
Created May 9, 2025 20:40
Script to install/update cloudflared for use on a pihole
[Unit]
Description=cloudflared DNS over HTTPS proxy
After=syslog.target network-online.target
[Service]
Type=simple
User=cloudflared
EnvironmentFile=/etc/default/cloudflared
ExecStart=/usr/local/bin/cloudflared proxy-dns $CLOUDFLARED_OPTS
Restart=on-failure
# There can only be a single job definition per file. This job is named
# "example" so it will create a job with the ID and Name "example".
# The "job" block is the top-most configuration option in the job
# specification. A job is a declarative specification of tasks that Nomad
# should run. Jobs have a globally unique name, one or many task groups, which
# are themselves collections of one or many tasks.
#
# For more information and examples on the "job" block, please see
# the online documentation at:
@brianjbayer
brianjbayer / gist-curlless-rack-based-healthchecks.md
Last active May 9, 2025 20:41
Add Rack-based liveness and readiness health checks and a Ruby program to check them to your (Rails) application

Adding Rack-Based Health Checks Without curl or wget

Lake View Cemetary, Cleveland OH - Wendy Bayer

Image: Lake View Cemetary, Cleveland OH by Wendy Bayer


You can not address a problem without first knowing that there is a problem. Having health checks in your application allows you to easily determine and monitor the status of your critical application

@atomkirk
atomkirk / stop-all-docker.md
Created February 9, 2021 14:25
Stop all Docker containers

I will often run this command to make sure all my docker containers are stopped and removed before running docker-compose up. Sometimes when you restart your system, old containers will start back up automatically in the background.

docker stop $(docker ps -aq) && docker rm $(docker ps -aq)
@probonopd
probonopd / Wayland.md
Last active March 16, 2026 09:14
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@zekroTJA
zekroTJA / mc-modpack-semver.md
Last active December 13, 2025 13:51
Semantic Versioning of Minecraft Modpacks

Semantic Versioning of Minecraft Modpacks

v.1.0.0-rc.2
2020-07-09

Summary

The version number goes after follwoing format.

Simple: MAJOR.MINOR.PATCH
@gipert
gipert / itunes-on-arch-linux-guide.md
Created May 10, 2020 00:49
iTunes on (Arch) Linux: installation guide

Prerequisites

  1. Enable the multilib repository by editing /etc/pacman.conf
  2. Install WineHQ and some other optional dependencies:
    $ pacman -Syu wine
    $ pacman -S --asdeps lib32-mpg123 lib32-gnutls {lib32-,}gst-plugins-base-libs \
                         lib32-alsa-plugins lib32-libpulse lib32-openal
    $ yay -S lib32-unixodbc # or your favourite AUR helper
  3. We'll install a 64-bit version of iTunes, so no need to set WINEARCH
@plembo
plembo / nestedvirtkvm.md
Last active October 21, 2025 10:22
Enable nested virtualization in KVM

Enable nested virtualization in KVM

For those times when you need to run virtualization (e.g. vagrant with VirtualBox) inside a KVM (libvirtd) guest.

The following taken from Enabling nested virtualization in KVM over on Fedora Docs.

  1. Make sure that the Intel-VT-x/AMD-V extensions are enabled in the host machine's BIOS. For Intel:
@perfecto25
perfecto25 / resticheat.md
Last active January 19, 2026 10:02
Restic cheatsheet

Restic backup application - commands cheatsheet

Installation & config

  1. add Retic repo
  2. yum install restic

add a Restic credential file to root

vim /root/.restic