Skip to content

Instantly share code, notes, and snippets.

View nurtantioquidar's full-sized avatar
🏠
Working from home

nurtantioquidar

🏠
Working from home
View GitHub Profile
@nurtantioquidar
nurtantioquidar / 1-setup.md
Created March 25, 2025 07:23 — forked from troyfontaine/1-setup.md
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@nurtantioquidar
nurtantioquidar / renew-gpgkey.md
Created January 21, 2025 03:02 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@nurtantioquidar
nurtantioquidar / bytes-to-uuid.sql
Created January 12, 2023 06:30 — forked from logbon72/bytes-to-uuid.sql
BigQuery UDF Convert Bytes to Hex & Hex to UUID
CREATE TEMP FUNCTION BytesToUUID(data BYTES)
RETURNS STRING
LANGUAGE js AS """
const tableStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const atob = function (base64) {
if (/(=[^=]+|={3,})$/.test(base64)) throw new Error("String contains an invalid character");
base64 = base64.replace(/=/g, "");
var n = base64.length & 3;
if (n === 1) throw new Error("String contains an invalid character");
for (var i = 0, j = 0, len = base64.length / 4, bin = []; i < len; ++i) {