Skip to content

Instantly share code, notes, and snippets.

View TyrfingMjolnir's full-sized avatar
💭
in my scriptorium whipping up some whoopass

Tyrfing Mjølner TyrfingMjolnir

💭
in my scriptorium whipping up some whoopass
View GitHub Profile
@TyrfingMjolnir
TyrfingMjolnir / Don't use Vim.md
Created August 15, 2024 18:21 — forked from romainl/Don't use Vim.md
Don't use Vim for the wrong reasons

Don't use Vim

Don't do the crime, if you can't do the time.

-- Anthony Vincenzo "Tony" Baretta

Vim is an amazing text editor. I love it. Really, I wouldn't [organize][organize] a Vim advent calendar if I didn't. But, as amazing as it is, Vim is not for everyone. It can't solve all your problems, or be a TUI version of your favorite IDE, or make you a better programmer, or land you that dream job in the Bay Area. But Vim can help you be more mindful, focused, and efficient, as long as you approach it with the right mindset.

Don't get me wrong, I certainly welcome you to try Vim, but I'm not a proselyte. I don't thrive on newbies. I just want you to use the right tool for the job and not waste your—and anyone's—time on a fruitless quest.

In terms of belief

  • I admit to being a spiritual being with a human experience; rather than a human being with a spiritual experience.

Sh*t that triggers my fancy

  • MSR / LFTR
  • Biohacking
  • Immunology, vitamin D? Foraging? Turkey tail anyone? Bitter gourd?
  • Mathematics; in particular statistics, transformations, and skew
  • IPFS
  • Trikke T12 Roadster
@TyrfingMjolnir
TyrfingMjolnir / lsusb_verbose.md
Last active May 7, 2024 15:35
Arkadekongen Joystick 4P DeLuxe produsert i april 2024
$ lsusb -vd 0079:

Couldn't open device, some information will be missing

Bus 001 Device 007: ID 0079:0006 DragonRise Inc. PC TWIN SHOCK Gamepad
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
@TyrfingMjolnir
TyrfingMjolnir / Begrepsapparat.md
Last active April 12, 2024 02:21
Utviklere, oppfinnere, og de som liker hjernedugnad( brain storming på nynorsk )

Begrepsapparat

  • Edge, det å ha noe andre ikke har
  • Eierskap
  • Katapult
  • Åndsverk / opphavsperson
  • Avhending
  • Videre eksemplarframstilling

Edge, det å ha noe andre ikke har

@TyrfingMjolnir
TyrfingMjolnir / All3buttonBothJoyports.s
Last active March 10, 2024 18:54
Reading the Amiga joystick ports. Heavily inspired by a file named: LEZIONE7q.s, floating around the interwebs.
; MOUSE port
btst #6,$bfe001 ; Left mouse button
btst #2,$dff016 ; POTGOR Right mouse button
btst #0,$dff016 ; POTGOR Middle mouse button
; JOYSTICK port
btst #7,$bfe001 ; Joystick button 1
btst #6,$dff016 ; POTGOR Joystick button 2
btst #4,$dff016 ; POTGOR Joystick button 3
@TyrfingMjolnir
TyrfingMjolnir / kvm-add-disk.json
Last active February 20, 2024 16:46 — forked from p7cq/kvm-add-disk.json
SmartOS - Add a disk to an existing VM
{
"add_disks": [
{
"media": "disk",
"model": "virtio",
"nocreate": true,
"boot": false,
"path": "/dev/zvol/rdsk/tank/purpose",
"size": 20480
}
@TyrfingMjolnir
TyrfingMjolnir / greenberet.fs-uae
Last active February 7, 2024 17:46
FS-UAE on MacOS X Monterey, vim motion like controllers w/1 through 3 button setup, also contemplating DualSense Wireless Controller
# FS-UAE configuration saved by FS-UAE Launcher
# Last saved: 2024-01-26 08:15:21
[fs-uae]
floppy_drive_0 = GreenBeret_December2022.adf
keyboard_key_h = action_joy_1_left
keyboard_key_j = action_joy_1_down
keyboard_key_k = action_joy_1_up
keyboard_key_l = action_joy_1_right
keyboard_key_a = action_joy_1_3nd_button
@TyrfingMjolnir
TyrfingMjolnir / lsp_swift.lua
Last active August 28, 2023 07:56
Neovim syntax coloring using apple/sourcekit-lsp
local swift_lsp = vim.api.nvim_create_augroup("swift_lsp", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
pattern = { "swift" },
callback = function()
local root_dir = vim.fs.dirname(vim.fs.find({
"Package.swift",
".git",
}, { upward = true })[1])
local client = vim.lsp.start({
name = "sourcekit-lsp",

[guide] keycloak authentication for proxmox

How to setup Proxmox to use Keycloak as authentication realm.

Proxmox Setup

root@proxmox:/etc/pve# cat domains.cfg
pam: pam
        comment Linux PAM standard authentication
@TyrfingMjolnir
TyrfingMjolnir / HOWTO.md
Last active July 21, 2023 10:36
How to launch Firefox from command line

To see which profiles are in your user:

ls -lAh ~/Library/Application\ Support/Firefox/Profiles

If you would like to add and / or manage profiles:

/Applications/Firefox\ Developer\ Edition.app/Contents/MacOS/firefox -p