Skip to content

Instantly share code, notes, and snippets.

@ubergoober
ubergoober / helpers.js
Created June 24, 2016 07:07
Quick and dirty nodejs helper module.
'use strict';
var helpers = {};
/**
* Execute function asynchronously
* @param fn : function to execute async
* @param cb : callback to call if provided
*/
helpers.async = function(fn, cb) {
@ubergoober
ubergoober / inventory.md
Last active December 17, 2023 00:02
IKEA Delivery Inventory

Received in full

  1. SEKTION - Suspension Rail

    • Price: $19.05
    • Article Number: 602.615.27
    • Qty: 6
  2. ENKÖPING - Door

    • Price: $73.04
  • Article Number: 305.059.56
@ubergoober
ubergoober / mousescrollreverse.ps1
Created January 3, 2024 07:32
Reverse Windows Mouse Scroll
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }
@ubergoober
ubergoober / ghostty_caps.md
Created September 18, 2025 21:36
Remap MacOS Capslock for ghostty

Native way to remap the capslock key to the key f18 for configuring the quick terminal within ghostty without using a tool like Karabiner Elements. This renders capslock useless for any other task, but I only use capslock for my quickterm. You can of course remap any other key.

Limitation: This remaps the capslock to only a single key which can't be used as a modifier key (perhaps unless you remap it to one, in which case just use the native MacOS modifier remapping setting in Preferences. This means you can't use it for keycombos. If you dedicate it like I did to just the quickterm, this shouldn't be an issue.

Configure ghostty for using f18 as the quick terminal hotkey. In the ghostty config, add, or modify the quick terminal hotkey line to: