Skip to content

Instantly share code, notes, and snippets.

View j-steinbach's full-sized avatar

J. Steinbach j-steinbach

View GitHub Profile
@j-steinbach
j-steinbach / 50-trackball.conf
Last active March 8, 2024 20:49
Kensington Expert Trackball > RMB top
Section “InputClass”
Identifier “Kensington trackball”
MatchDevicePath “/dev/input/event*”
MatchVendor “047d”
MatchProduct “Kensington Expert Mouse Trackball”
Driver “libinput”
Option “ButtonMapping” “1 2 8 4 5 6 3 3”
Options “Natural Scrolling Enabled” “1”
EndSection
@j-steinbach
j-steinbach / .eleventy.js
Last active June 5, 2023 11:43
Find all images in a folder and display them in a single Eleventy template
module.exports = function (eleventyConfig) {
// copy files that are not templates to `_site/`
// see https://www.11ty.dev/docs/copy/
// - alternatively this could be done via eleventyConfig.setTemplateFormats
// see https://www.11ty.dev/docs/copy/#passthrough-by-file-extension
//
// !! when using Tailwind, make sure to NOT copy the tailwind css files..
eleventyConfig.addPassthroughCopy("src/assets/img");
return {
@j-steinbach
j-steinbach / crawl-solid-apps.fish
Last active July 26, 2022 18:43
This fish script grabs the source code of all Solid apps from solidprojects.org and clones them into a sub-dir. No warranty/liabality/etc. Use on your own risk.
#!/bin/fish
# clone all the example solid projects
# 1. curl https://solidproject.org/apps
# 2. regex: https:\/\/github.com\/[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+\"
# 3. clean list, remove duplicates
# 4. create subfolder (if not already existing)
# 5. for each gitrepo: clone it!
set url "https://solidproject.org/apps"
set regex "https:\/\/github.com\/[a-zA-Z0-9-]+\/[a-zA-Z0-9-]+\""
@j-steinbach
j-steinbach / linux_kernel_modules_nixos.md
Created February 16, 2022 17:34 — forked from CMCDragonkai/linux_kernel_modules_nixos.md
Linux Kernel Modules for NixOS #linux #nixos

Linux Kernel Modules for NixOS

You can find what kernel modules are loaded using lsmod.

However some kernel modules are required at stage 1 boot. Basically preloaded in the initial ram disk before switching to the root filesystem. These kernel modules are mostly needed to deal with peripherals, storage devices, filesystems and network devices. You may need to be wary of these required modules:

  • sd_mod - SCSI, SATA, and PATA (IDE) devices
@j-steinbach
j-steinbach / extractAnnotations.py
Created December 20, 2021 21:03 — forked from stevepowell99/extractAnnotations.py
Extracts annotations and highlighted passages in all .pdf files in a folder recursively and outputs them as text files with the same name and modification date
#!/usr/bin/env python
# see http://socialdatablog.com/extract-pdf-annotations.html
myxkfolder="/home/steve/xk/" #you need to set this to where you want your to-dos to appear
import poppler, os.path, os, time, datetime
for root, dirs, files in os.walk('./'):
for lpath in files:
@j-steinbach
j-steinbach / zk.nix
Created October 18, 2021 19:36
A derivation to build ZK
# https://github.com/mickael-menu/zk
with import <nixpkgs> {};
buildGoModule rec {
pname = "zk";
version = "0.7.0";
commit = "9bd2eacf06eb84d608e941cd008363ef91374695";
shortcommit = "9bd2eac";