Skip to content

Instantly share code, notes, and snippets.

View talk2bryan's full-sized avatar
💭
I may be slow to respond.

Bryan Wodi talk2bryan

💭
I may be slow to respond.
View GitHub Profile
@timothyham
timothyham / ipv6guide.md
Last active November 2, 2026 19:02
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

@mkyrychenko
mkyrychenko / ip-calc.old.sh
Created June 10, 2021 22:01
Bash IP Calculator
#!/usr/bin/env bash
#1. if you have only network prefix available (no netmask)
IP=10.20.30.240
PREFIX=26
IFS=. read -r i1 i2 i3 i4 <<< $IP
IFS=. read -r xx m1 m2 m3 m4 <<< $(for a in $(seq 1 32); do if [ $(((a - 1) % 8)) -eq 0 ]; then echo -n .; fi; if [ $a -le $PREFIX ]; then echo -n 1; else echo -n 0; fi; done)
printf "%d.%d.%d.%d\n" "$((i1 & (2#$m1)))" "$((i2 & (2#$m2)))" "$((i3 & (2#$m3)))" "$((i4 & (2#$m4)))"
@christiancarnley
christiancarnley / instructions.md
Last active February 3, 2022 03:03
A dark theme for Slack
  • Open the “ssb-interop.js” file
  • Mac: Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
  • Windows: C:\Users\<USERNAME>\AppData\Local\slack\app-<VERSION>\resources\app.asar.unpacked\src\static\ssb-interop.js
  • Add this snippet of code at the bottom:
document.addEventListener('DOMContentLoaded', function() {
    $.ajax({
 url: 'https://gist.githubusercontent.com/ccarnley7/f245c47c6f265d8cfb7a3247f3429ac6/raw/e092fde4da3a93175a39ce1e4dafb547720af730/slackDarkTheme.css',