Skip to content

Instantly share code, notes, and snippets.

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

Cory Sanin CorySanin

🏠
Working from home
View GitHub Profile
@F21
F21 / signing-gpg-keys.md
Last active May 5, 2024 20:59
Signing someone's GPG key

This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.

Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint

The commands will work for both GPG and GPG2.

I use Julian's key for the examples. His key id is 2AD3FAE3. You should substitute with the appropriate key id when running the commands.

Signing the key

  1. List the keys currently in your keyring: gpg --list-keys.
@OliverJAsh
OliverJAsh / foo.ts
Last active July 29, 2023 18:16
Records and dictionaries in TypeScript
/*
In JavaScript, objects can be used to serve various purposes.
To maximise our usage of the type system, we should assign different types to our objects depending
on the desired purpose.
In this blog post I will clarify two common purposes for objects known as records and dictionaries
(aka maps), and how they can both be used with regards to the type system.
@mitchwongho
mitchwongho / Docker
Last active November 29, 2023 06:36
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@equinox79
equinox79 / gist:7212950
Created October 29, 2013 11:27
sourcetree uri scheme
sourcetree://checkoutRef?ref=master&cloneUrl=https://github.com/uzulla/yancha.git&type=bitbucket
sourcetree://checkoutRef?ref=master&cloneUrl=https://github.com/uzulla/pyazo.git&type=bitbucket
sourcetree://checkoutRef?ref=master&cloneUrl=git@github.com:equinox79/adreso.git&type=bitbucket
// $('.clone-url').each(function(a,b){ console.log( $(b).attr('data-protocol-type') ) })