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
@timothyham
timothyham / ipv6guide.md
Last active November 14, 2024 21:08
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

@F21
F21 / signing-gpg-keys.md
Last active September 2, 2024 10:21
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 August 11, 2024 16:19
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 September 23, 2024 12:09
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&[email protected]:equinox79/adreso.git&type=bitbucket
// $('.clone-url').each(function(a,b){ console.log( $(b).attr('data-protocol-type') ) })