Skip to content

Instantly share code, notes, and snippets.

View rpavlik's full-sized avatar

Rylie Pavlik rpavlik

View GitHub Profile
@rpavlik
rpavlik / notes.md
Last active March 12, 2024 21:54
Debian packaging notes

These are my personal notes on how to handle Debian packaging best locally. Naturally they aren't authoritative, and I may have "missed a memo" - if so, let me know!

  • New package
    • git init
    • gbp import-orig ...
    • debmake
  • Clean up and edit
    • cme edit dpkg
  • see
@rpavlik
rpavlik / step1-alternate.ps1
Last active March 10, 2024 20:00
Linux name change
# from https://askubuntu.com/a/1363020
wsl -l -v
wsl --terminate Debian # <distro> from the previous command
wsl -u root -d Debian # "-d <distro>" is only needed for non-default instances
# Now from in WSL
usermod -l rylie ryan
# Optionally change the home directory name to match
usermod -d /home/rylie -m rylie
# Optionally change the group name to match
@rpavlik
rpavlik / git-prep.sh
Last active February 6, 2024 20:11
git-prep
#!/bin/sh
# SPDX-FileCopyrightText: 2020-2024, Rylie Pavlik
# SPDX-License-Identifier: CC0-1.0
# Nothing sh-specific here, these work fine in pwsh as well
### Aliases
# Lots of people use these, and I guess I type them a lot...
git config --global alias.ci commit
git config --global alias.co checkout
@rpavlik
rpavlik / scrollbars.css
Created October 13, 2023 17:49
Less sucky scrollbars in webkit/electron apps
/* inspired by https://artemis.sh/2023/10/12/scrollbars.html and https://gist.github.com/devinrhode2/2573411 */
/* tested out in logseq since it lets you monkey with the CSS of the app live. */
html ::-webkit-scrollbar {
width: 15px;
background-color: #333;
-webkit-border-radius: 100px;
}
html ::-webkit-scrollbar-thumb:vertical {
background-color: #aaa;
@rpavlik
rpavlik / setup.ps1
Last active October 11, 2023 19:56
basic system setup
# install scoop
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# for bare metal
iwr -useb get.scoop.sh | iex
# or, for VM with a shared w:\ drive already
# $env:SCOOP = 'w:\scoop'
# [Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
# iwr get.scoop.sh -outfile 'install.ps1'
@rpavlik
rpavlik / blinky-digital-rain.py
Created May 9, 2023 22:54
AdaFruit LED Glasses Digital Rain, plus Blinky
# SPDX-FileCopyrightText: 2021-2023 Ryan Pavlik
#
# A little bit of board setup based on code that is:
#
# SPDX-FileCopyrightText: 2021 Phil Burgess for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
Display 'digital rain' aka 'the Matrix thing' on the Adafruit LED Glasses,
https://www.adafruit.com/product/5255
@rpavlik
rpavlik / keybase.md
Created February 8, 2023 15:54
keybase.md

Keybase proof

I hereby claim:

  • I am rpavlik on github.
  • I am ryanpavlik (https://keybase.io/ryanpavlik) on keybase.
  • I have a public key whose fingerprint is C076 38BF B23D 7D99 21EE 9696 CBC5 5E3D 986A 54C7

To claim this, I am signing this object:

@rpavlik
rpavlik / pretty-registry-xml.json
Last active January 20, 2023 16:57
PrettyRegistryXML manifest for Scoop
{
"version": "3.3.0",
"description": "A tool used to automatically format the OpenXR XML registry.",
"homepage": "https://github.com/rpavlik/PrettyRegistryXml",
"license": "MIT AND Apache-2.0",
"architecture": {
"64bit": {
"url": "https://github.com/rpavlik/PrettyRegistryXml/releases/download/v3.3.0/PrettyRegistryXml-Windows-3.3.0.7z",
"hash": "429eb0997e83d0f0df681bbda2b74123cc4671cfb2b86daeb3df269e94ea2622",
"extract_dir": "PrettyRegistryXml-Windows-3.3.0"
@rpavlik
rpavlik / winvm.md
Last active December 3, 2022 03:17
Windows Dev VM in libvirt

One time

  • Build rhsrvany using a windows toolchain like i686-w64-mingw32, and put the resulting rhsrvany.exe and pnp_wait.exe in /usr/share/virt-tools (or see https://salsa.debian.org/rpavlik/rhsrvany for a debian package of it)
    • git clone https://github.com/rwmjones/rhsrvany.git
    • cd rhsrvany
    • autoreconf -i -f
    • ./configure --host=i686-w64-mingw32
    • make
  • sudo mkdir -p /usr/share/virt-tools
@rpavlik
rpavlik / code.py
Created October 28, 2022 21:53
creature eyes mqtt
# SPDX-FileCopyrightText: 2020 Phillip Burgess for Adafruit Industries
# SPDX-FileCopyrightText: 2021-2022 Ryan Pavlik <ryan@ryanpavlik.com>
#
# SPDX-License-Identifier: MIT
"""
RASTER EYES for Adafruit Matrix Portal: animated spooky eyes.
Updated by Ryan to hide the head fully and have MQTT control
"""