Skip to content

Instantly share code, notes, and snippets.

@kkbae-com
kkbae-com / com.example.omniwm-sidecar-watch.plist
Created September 9, 2026 21:57
OmniWM: auto-fix workspace-monitor split when Sidecar connects [tags: omniwm, macos, tiling-window-manager, sidecar, multi-monitor, launchd]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.omniwm-sidecar-watch</string>
<key>ProgramArguments</key>
<array>
<string>/bin/zsh</string>
<string>-lc</string>
@kkbae-com
kkbae-com / aerospace-2x2-grid-setup.md
Last active September 9, 2026 18:38
AeroSpace: floating-center toggle + Hyprland-style 2x2 window grid [tags: aerospace, macos, tiling-window-manager, hyprland, dwindle]

AeroSpace: floating-center toggle + Hyprland-style 2x2 window grid

Tags: aerospace, macos, tiling-window-manager, hyprland, dwindle, window-manager, applescript, jxa, dotfiles

Four small scripts that make AeroSpace (a tiling window manager for macOS) behave a bit more like Hyprland's dwindle layout:

  • A solo window in a workspace can be toggled to a floating, centered window (at 70% of its screen) and back, instead of always filling the whole space.
@kkbae-com
kkbae-com / XLIFFtoLazyLoadResources.md
Last active January 22, 2024 08:47
XLIFF to lazy loaded resource files for i18next

Abstract

In the case you are given an XLIFF file from your translation service and would like to convert it to resource files that can be utilized by your javascript application utilizing i18next.

Notes

The following piece of javascript can be used as a build step for your node project. In my case it runs in a react application and is set to run with the command npm run build:resources by adding build:resources to the script secion of our project's package.json. This utilizes and follows file location conventions from the i18next-http-backend library.

Code

const fs = require('fs');
const xliff = require('xliff')
@kkbae-com
kkbae-com / SelfSignedCert.md
Last active September 8, 2026 03:02
Creating a self signed certificate in a pfx format on a mac.

Create Self Signed Certificate using OpenSSL on a Mac

Introduction

Every now and then I need to create a self signed certificate in azure for something. In my particular case its Azure B2C. I am using a mac so its not simply just running something like

New-SelfSignedCertificate `
    -KeyExportPolicy Exportable `
    -Subject "CN=yourappname.yourtenant.onmicrosoft.com" `
 -KeyAlgorithm RSA `