Skip to content

Instantly share code, notes, and snippets.

View Elandig's full-sized avatar

Ruslan Norberg Elandig

View GitHub Profile
@Elandig
Elandig / fkoff-discord.sh
Last active February 21, 2025 09:42
Automatically update Discord build number from their download page, allowing it to start on Linux without being forced to update
#!/bin/sh
#
# This script fetches the latest Discord build number and changes it in
# /opt/discord/resources/build_info.json, allowing Discord to launch without updating.
#
# You should only use this script if https://wiki.archlinux.org/title/Discord
# (2.2 Discord asks for an update not yet available in the repository) does not work for you.
#
@tomslominski
tomslominski / README.md
Last active May 7, 2025 18:14
Avahi alias systemd service

Instructions

The first file is the script to be run, which you can store in your home directory. The second file is the systemd unit file which goes in /etc/systemd/system. Make sure on line 6 it references the location of the first file, and that you run systemctl daemon-reload after editing the unit file.

To run the service automatically on boot, run sudo systemctl enable avahi-alias@[domain], followed by sudo systemctl start avahi-alias@[domain] to start it immediately.

@oseme-techguy
oseme-techguy / Correct_GnuPG_Permission.sh
Last active March 1, 2026 07:57
This fixes the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error while using Gnupg .
#!/usr/bin/env bash
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error
# Make sure that the .gnupg directory and its contents is accessibile by your user.
chown -R $(whoami) ~/.gnupg/
# Also correct the permissions and access rights on the directory
chmod 600 ~/.gnupg/*
chmod 700 ~/.gnupg