This is especially useful when server GPG keys are updated.
List the repository GPG keys that are currently installed with
sudo rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\t%{SUMMARY}\n'
# Before running you need to modify the Execution policy from Administrator Powershell console | |
# Set-ExecutionPolicy -Force -ExecutionPolicy RemoteSigned | |
# .\TraefikSetup.ps1 | |
$TraefikHome = "C:\Traefik" | |
$TraefikRelease = "v2.1.4" | |
$NssmHome = "C:\nssm" | |
$NssmRelease = "2.24" | |
{ | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"rules": [ | |
{ | |
"description": "Map Microsoft Ergonomic keyboard lock button", | |
"manipulators": [ | |
{ | |
"from": { |
List your secret keys, and decide which one to export.
gpg --list-secret-keys --keyid-format LONG
Export the secret and public parts of the key.
gpg --export --armor > gpg-pub.asc
#!/usr/bin/env bash | |
# | |
# Git hook that appends Jira issue ID from the branch name to the commit message. | |
# | |
# e.g. for the branch name `feature/ABC-1234/add-xyz`, the `[ABC-1234]` | |
# is added to the commit message as well as summary. | |
# | |
# Installation: | |
# $ curl -fsSL -o .git/hooks/prepare-commit-msg \ | |
# 'https://gist.githubusercontent.com/dogukancagatay/38792bf7ace99817555389e043ed954a/raw/prepare-commit-msg.sh' |
#!/usr/bin/env bash | |
# Reference: https://stackoverflow.com/questions/18787375/how-do-i-extract-the-contents-of-an-rpm | |
# cpio flags | |
# -i = extract | |
# -d = make directories | |
# -m = preserve modification time | |
# -v = verbose | |
mkdir contents; cd contents |
When added --args "nomodeset"
to arm-image-installer
command, booting problem was fixed.
sudo arm-image-installer \
--image=Fedora-Server-40-1.14.aarch64.raw.xz \
--target=rpi4 \
--media=/dev/sda \
--resizefs \
--args "nomodeset"
import socket | |
import struct | |
import subprocess | |
import time | |
REF_TIME_1970 = 2208988800 # Reference time | |
def get_ntp_time(addr="0.de.pool.ntp.org") -> int | None: | |
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |