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
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) |
#!/usr/bin/env bash | |
# Check whether your mypy version compiled: `mypy --version` | |
# Mypy works a lot faster when using the compiled version | |
## Usage: | |
## curl -fL 'https://gist.githubusercontent.com/dogukancagatay/99df8636b0ca9d5a59f40b50f4a70970/raw/mypy_compiled.sh' | bash | |
MYPY_VERSION="${1:-1.9.0}" | |
curl -fL -o /tmp/${MYPY_VERSION}.tar.gz "https://github.com/python/mypy/archive/refs/tags/${MYPY_VERSION}.tar.gz" |
# ===================================================================== # | |
# BASIC CONFIGURATION (FEDORA 37) | |
# ===================================================================== # | |
# Default values in this YAML file are specified by `null` instead of Lima's "builtin default" values, | |
# so they can be overridden by the $LIMA_HOME/_config/default.yaml mechanism documented at the end of this file. | |
# VM type: "qemu" or "vz" (on macOS 13 and later). | |
# The vmType can be specified only on creating the instance. | |
# The vmType of existing instances cannot be changed. |