Skip to content

Instantly share code, notes, and snippets.

View Patrick-Kladek's full-sized avatar

Patrick Kladek Patrick-Kladek

View GitHub Profile
@hannesoid
hannesoid / Locked.swift
Last active December 3, 2019 11:24
Atomically locking property wrapper for swift
//
// Locked.swift
//
//
// Created by Hannes Oud on 29.11.19.
// Helpful reading https://www.vadimbulavin.com/swift-atomic-properties-with-property-wrappers/
import Foundation
/// Atomically locks a property using `os_unfair_lock`
@danieleggert
danieleggert / GPG and git on macOS.md
Last active May 3, 2024 12:26
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys