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
@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') ) })
@mitchwongho
mitchwongho / Docker
Last active June 26, 2024 07:28
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@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.
@F21
F21 / signing-gpg-keys.md
Last active July 13, 2024 23:42
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.
@timothyham
timothyham / ipv6guide.md
Last active July 19, 2024 01:14
A Short IPv6 Guide for Home IPv4 Admins

A Short IPv6 Guide for Home IPv4 Admins

This guide is for homelab admins who understand IPv4s well but find setting up IPv6 hard or annoying because things work differently. In some ways, managing an IPv6 network can be simpler than IPv4, one just needs to learn some new concepts and discard some old ones.

Let’s begin.

First of all, there are some concepts that one must unlearn from ipv4:

Concept 1