Skip to content

Instantly share code, notes, and snippets.

@jahway603
jahway603 / RenewExpiredGPGkey.md
Created November 1, 2024 19:29 — forked from TheSherlockHomie/RenewExpiredGPGkey.md
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@jahway603
jahway603 / golang-Makefile
Created July 19, 2024 18:35 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/example
BINARY_NAME := example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
@jahway603
jahway603 / gist:7b8d78caefd76093c4b4759560aee5c1
Created March 14, 2024 17:19 — forked from jauderho/gist:6b7d42030e264a135450ecc0ba521bd8
HOWTO: Upgrade Raspberry Pi OS from Bullseye to Bookworm
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Officially, this is not recommended. YMMV
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/
#
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#
#!/usr/bin/perl -w
use strict;
@ARGV or die "Usage: $0 PNGFILE...\nOutputs the file names of the PNG files with trailing data.";
FILE: while (@ARGV) {
my $fn = shift;
eval {
no warnings 'exiting';
@jahway603
jahway603 / gist:1067d05c3d6e6fcf3b4f1ba3f63fe1a7
Last active November 10, 2022 21:27
issue with maubot AUR package or is this an issue with the maubot code???
The [maubot AUR package](https://aur.archlinux.org/packages/maubot) built, but mbc will not work for whatever reason...
Unsure if this is an issue with the maubot AUR package or if this issue needs to be reported directly to the project as I am able to run & use mbc on other Linux distros.
When I run `mbc --help`:
```
disruptor ]$ mbc --help
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: master is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: git-archive.dev8b63d73a17 is an invalid version and will not be supported in a future release
warnings.warn(