Skip to content

Instantly share code, notes, and snippets.

View ErichDonGubler's full-sized avatar

Erich Gubler ErichDonGubler

View GitHub Profile
# Take all provided images and put them into PDF using Python's Pillow library.
#
# Uses `uvx`. If you don't have it, you will need to install it.
#
# # Examples
@example "turn pages from scans into a PDF" { ls ~/Downloads/scanned_images | get name | images-to-pdf }
export def "main" [
--to: oneof<path, nothing>,
# The output path of the PDF.
]: list<path> -> nothing {
@ErichDonGubler
ErichDonGubler / mod.nu
Last active February 12, 2026 18:21
collate-front-and-back-feed-scans
# "Zip"/collate an even number of items such that every other item is pulled from the back.
#
# This is appropriate for scans of a stack of documents that run all front sides, then all back
# sides.
#
# # Examples
@example "reorder page numbers from a feed scanner" { [1 3 4 2] | collate-front-and-back-feed-scans } --result [1 2 3 4]
export def "main" [
]: list<any> -> list<any> {
mut input = $in
@ErichDonGubler
ErichDonGubler / .gitignore
Last active December 22, 2025 19:24
wgpu-8768-mre
/target
@ErichDonGubler
ErichDonGubler / README.md
Created November 7, 2025 22:04
pwned-passwords-check

TODO

@ErichDonGubler
ErichDonGubler / loadAllDifferentialPatchFiles.js
Created February 28, 2025 02:51
Load all files in a Differential revision (Phabricator)
document.querySelectorAll('[data-sigil="differential-load"]').forEach(el => el.click())
@ErichDonGubler
ErichDonGubler / .gitignore
Last active April 9, 2025 22:19
Analysis of `webgpu-apps`' current blockers
cache/
@ErichDonGubler
ErichDonGubler / CopyGitHubPROrIssueTitleAsMarkdownLink.user.js
Last active February 24, 2026 19:43
User scripts for various things Erich uses for his work on Firefox's WebGPU implementation
This file has been truncated, but you can view the full file.
[
"https://www.example.com/",
"http://www.example.com/basket.php",
"http://www.example.org/airport?account=branch&account=alarm",
"http://example.com/?bottle=arch&birth=art",
"https://www.example.com/adjustment/bee.html",
"http://www.example.com/",
"http://example.com/bomb/bear?bone=behavior&arm=ball",
"http://www.example.com/",
@ErichDonGubler
ErichDonGubler / git_svn_shallow_clone.sh
Last active August 10, 2022 14:28
Shallow-cloning an SVN repository in Git
function git_svn_shallow_clone() {
# Shallowly clones an SVN repository using `git svn`.
#
# Example: Clone directly into the CWD.
# Note: if your connection fails midway through the cloning, you can pick up from
# where you left off by simply invoking the clone function again. Neat, right?
# $ git_svn_shallow_clone <url> .
#
# You may need to run this in your cloned folder if you need to resume cloning from
# an interrupted connection.

Keybase proof

I hereby claim:

  • I am erichdongubler on github.
  • I am erichdongubler (https://keybase.io/erichdongubler) on keybase.
  • I have a public key ASAHElC6breV_idmtm0TM1TIEvbhf5P_vCEqMLF3r4bvPwo

To claim this, I am signing this object: