Skip to content

Instantly share code, notes, and snippets.

View wlonkly's full-sized avatar

Rich Lafferty wlonkly

View GitHub Profile
@wlonkly
wlonkly / Justfile
Last active August 29, 2024 20:34
using things that aren't make for things that aren't compilation dependencies
# feels like make but without the weirdnesses
# look, ma, i'm using spaces!
publish:
scripts/publish.sh
force-publish:
scripts/publish.sh -f
post title:
@wlonkly
wlonkly / gist:ba9171ce575bd039cbc5cf4a141d8abc
Created October 4, 2023 03:35
traceroute from Bell Aliant Dartmouth to www.google.com
$ traceroute -a www.google.com
traceroute to www.google.com (142.250.65.164), 64 hops max, 52 byte packets
1 [AS0] router (10.55.10.254) 25.508 ms 4.343 ms 4.139 ms
2 [AS0] 192.168.2.1 (192.168.2.1) 4.920 ms 2.573 ms 4.485 ms
3 [AS0] 10.178.218.5 (10.178.218.5) 4.236 ms 5.520 ms 40.034 ms
4 [AS855] be14-83.cr01.drmo.ns.aliant.net (142.176.104.145) 8.041 ms
[AS855] ae15-84.cr02.drmo.ns.aliant.net (142.176.104.149) 7.096 ms
[AS855] be14-83.cr01.drmo.ns.aliant.net (142.176.104.145) 4.946 ms
5 [AS855] hg-0-4-0-0.cr01.hlfx.ns.aliant.net (142.166.211.73) 7.371 ms
[AS855] hg-0-4-0-1-50.cr01.drmo.ns.aliant.net (142.166.218.65) 6.580 ms 7.419 ms
- Chicken
- boneless skinless chicken breast containing up to 16%
solution of water,
- seasoning
- yeast extract
- onion powder
- sea salt
- garlic powder
- sugar
- salt
a8e () { LEN=$(( $(echo -n $1 | wc -c) - 2)); echo $1 | sed "s/^\(.\).*\(.\)$/\1$LEN\2/"; }
e9e () { LEN=$(echo $1 | sed 's/^.\(.*\).$/\1/'); GREP=$(echo $1 | sed "s/^\(.\).*\(.\)$/^\1.{$LEN}\2$/"); grep -E "$GREP" /usr/share/dict/words; }
[tool.poetry]
name = "pd-vcard"
version = "0.0.1"
description = ""
authors = ["Your Name <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
vobject = "*"
phonenumbers = "*"
@wlonkly
wlonkly / gist:c547f93818b40627e75afcceae6d64a6
Created August 12, 2022 20:09
why wayfair.ca DNS is broken
:) ~$ dig @c.ca-servers.ca wayfair.ca ns
; <<>> DiG 9.10.6 <<>> @c.ca-servers.ca wayfair.ca ns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51813
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 8, ADDITIONAL: 1
;; WARNING: recursion requested but not available
@wlonkly
wlonkly / tst.css
Created July 21, 2022 02:12
wlonkly's Tree Style Tabs CSS
/* Show title of unread tabs with italic font */
:root.sidebar tab-item.unread .label-content {
font-style: italic !important;
}
/* Add private browsing indicator per tab */
:root.sidebar tab-item.private-browsing tab-label:before {
content: "🕶";
}
@wlonkly
wlonkly / gist:b39f8fe37c8455bcc0bce6a7549a62ee
Last active June 19, 2022 18:50
iplist from Dan's Tools "What is my IP?"
10.0.0.1
10.0.0.138
10.0.0.2
10.0.1.1
10.0.10.254
10.1.0.99
10.1.1.1
10.10.10.1
10.10.10.254
10.100.1.1
@wlonkly
wlonkly / debugging.md
Last active July 8, 2021 15:13
Steps I took to troubleshoot a full disk

I wrote this down after I responded to a page today (a holiday) because it would've been a decent pairing opportunity for a couple of new people on my team. Second best is that people can read what I did afterwards and ask me any questions. And then I realized that there's nothing PagerDuty-specific or confidential in here, so I may as well share it wider. It's hardly an epic incident, but it's a good example of "doing the work", I think. I borrowed the "write down what you learned" approach from Julia "b0rk" Evans. It's a fantastic practice.

The PagerDuty incident: "Disk will be full in 12 hours. device:/dev/nvme0n1p1, host:stg-nomadusw2-client-..."

(Note for non-PD readers: We run Nomad where others might run Kubernetes.)

Here's the process I went through.

  • Noticed that the usual docker system prune -a -f didn't resolve it
  • Tried docker system prune -a -f and it cleared up 0B
@wlonkly
wlonkly / bbc.bas
Last active June 13, 2021 21:33
Code samples from developer.bbc.com's hero image textarea
10 PRINT "BBC Developer Portal"
20 GOTO 10