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'| sudo dnf install -y adoptium-temurin-java-repository | |
| sudo dnf config-manager setopt adoptium-temurin-java-repository.enabled=1 | |
| sudo dnf install -y temurin-17-jre |
| # Proxmox VE disable clustering -- Run on all nodes | |
| rm -rf /etc/corosync/* | |
| rm /etc/pve/corosync.conf | |
| killall pmxcfs | |
| systemctl start pve-cluster | |
| # Optional: remove the other nodes | |
| rm -rf /etc/pve/nodes/pve |
| # generate secure passwords using pwgen without the complications of quote characters ('"`) | |
| alias pwg="pwgen -1 --symbols --secure --remove-chars \\\`\\'\\\"" |
| sudo dnf install -y dnf-plugins-core | |
| sudo dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo | |
| sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
| sudo systemctl enable --now docker | |
| sudo docker run hello-world | |
| sudo usermod -aG docker $USER |
| import time | |
| import ntplib | |
| def get_ntp_time_difference(ntp_server: str = "pool.ntp.org") -> float: | |
| """Calculates the time difference between the local computer clock and an NTP server.""" | |
| try: | |
| response = ntplib.NTPClient().request(ntp_server, version=3) | |
| return response.tx_time - time.time() |
| # 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 LONGExport 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' |