Skip to content

Instantly share code, notes, and snippets.

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

Nathan Lowe nlowe

🏠
Working from home
View GitHub Profile
@nlowe
nlowe / benchmark.log
Created December 11, 2021 05:50
AoC 2021 Benchmarks
# As of Day 11
C:\Users\Nathan\projects\aoc2021 [master ≡]> go test --% -bench=. -run=XXX ./challenge/...
? github.com/nlowe/aoc2021/challenge [no test files]
? github.com/nlowe/aoc2021/challenge/cmd [no test files]
goos: windows
goarch: amd64
pkg: github.com/nlowe/aoc2021/challenge/day1
cpu: AMD Ryzen 7 3800X 8-Core Processor
BenchmarkA-16 1518 732954 ns/op
BenchmarkB-16 1536 746632 ns/op
@nlowe
nlowe / main.jsonnet
Last active September 9, 2020 08:46
Patching / Overriding is poorly explained in the jsonnet documentation. Here's the tl;dr:
// See https://jsonnet.xrt0x.com/j/VigL64fxlx4
//
// TL;DR:
// * `:` -> Set a field, preserving its visibility. If this is the root / base object, the field is public.
// * `::` -> Set a field and also make it private / hidden.
// * `:::` -> Set a field and also make it public / visible.
//
// Prefix any of these with a `+` (so `+:` / `+::` / `+:::`) to patch a field / object instead. What "patch"ing
// means depends on the type of the field. Objects are merged, lists are appended to, and strings are concatenated.
@nlowe
nlowe / request.json
Created August 27, 2020 08:07
Pandora: /api/v4/catalog/getDetails
{
"pandoraId":"AR:175180"
}
@nlowe
nlowe / fonts.log
Created November 10, 2019 20:43
OnePlus 6: 10.0.0 missing fonts
OnePlus6:/ $ ls -lah /system/fonts
total 3.8M
drwxr-xr-x 2 root root 12K 2008-12-31 19:00 .
drwxr-xr-x 18 root root 4.0K 2008-12-31 19:00 ..
-rw-r--r-- 1 root root 4.4K 2008-12-31 19:00 AndroidClock.ttf
-rw-r--r-- 1 root root 39K 2008-12-31 19:00 CarroisGothicSC-Regular.ttf
-rw-r--r-- 1 root root 58K 2008-12-31 19:00 ComingSoon.ttf
-rw-r--r-- 1 root root 68K 2008-12-31 19:00 CutiveMono.ttf
-rw-r--r-- 1 root root 113K 2008-12-31 19:00 DancingScript-Bold.ttf
-rw-r--r-- 1 root root 114K 2008-12-31 19:00 DancingScript-Regular.ttf
@nlowe
nlowe / patch.ps1
Last active July 28, 2019 05:08
Dark Slack on Windows
#Requires -RunAsAdministrator
# Heavily based off of https://github.com/LanikSJ/slack-dark-mode, which is licensed under the GPLv3 License
Param(
[string] $CSSUrl = "https://raw.githubusercontent.com/LanikSJ/slack-dark-mode/master/dark-theme.css",
[string] $SlackBase = $null,
[switch] $UpdateOnly
)
if (-not (Get-Command -Name "npx" -ErrorAction SilentlyContinue)) {
@nlowe
nlowe / README.md
Created May 22, 2019 00:44
OpenConsole Dracula Theme

OpenConsole Dracula Theme

This is my attempt at a Dracula Theme for OpenConsole

Installing

Open your profiles.json and add the snippet below to the schemes list. Then, update your profiles to set the colorscheme property to Dracula.

@nlowe
nlowe / issue.md
Created December 20, 2018 19:48
New Feature: Tag Retention Policies

This is a meta issue tracking the implementation of Tag Retention Policies

Summary

Not many people have the luxury of unlimited storage. For images and tags that are effectively ephemeral (like those built and tagged for use only by an intermediate process in a CI pipeline) it does not make sense to keep these tags around for an extended period of time, consuming precious resources. Other tags, like those correlating to released or deployed software may need to be kept for an extended period of time or even forever for various legal or compliance

@nlowe
nlowe / gollum.log
Last active September 29, 2018 20:22
Gollum 5.x Windows
**********************
Windows PowerShell transcript start
Start time: 20180929161830
Username: DESKTOP-VJTE43I\Nathan
RunAs User: DESKTOP-VJTE43I\Nathan
Configuration Name:
Machine: DESKTOP-VJTE43I (Microsoft Windows NT 10.0.17134.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 9820
PSVersion: 5.1.17134.228
@nlowe
nlowe / gollum-lib-tests.log
Last active September 29, 2018 20:02
Gollum 5.x - JRuby on Windows 10
**********************
Windows PowerShell transcript start
Start time: 20180929160100
Username: DESKTOP-VJTE43I\Nathan
RunAs User: DESKTOP-VJTE43I\Nathan
Configuration Name:
Machine: DESKTOP-VJTE43I (Microsoft Windows NT 10.0.17134.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Process ID: 3664
PSVersion: 5.1.17134.228
@nlowe
nlowe / ldump.go
Created July 10, 2018 18:40
Grafana LDAP Debugger
package main
import (
"bufio"
"crypto/tls"
"fmt"
"os"
"strings"
"github.com/go-ldap/ldap"