Skip to content

Instantly share code, notes, and snippets.

View kmplngj's full-sized avatar

Jan Kampling kmplngj

  • Münster, Germany
View GitHub Profile
@kmplngj
kmplngj / init.lua
Created January 29, 2024 07:56 — forked from nriley/init.lua
Hammerspoon script for ensuring Sidecar is active when iPad is plugged in (macOS 10.15; see comments for versions up to macOS 13)
hs.loadSpoon('SpoonInstall')
spoon.SpoonInstall.use_syncinstall = true
Install = spoon.SpoonInstall
log = hs.logger.new('init', 5)
-- function debugUI(msg, table)
-- log:d(msg)
-- log:d(hs.inspect(table))
-- end
@kmplngj
kmplngj / README.md
Created June 17, 2024 13:32 — forked from abelcallejo/README.md
Create bootable Linux USB using Mac

Creating bootable Linux USB using Mac

mac

CentOS, Ubuntu, Slackware, etc. Whatever Linux-based OS it is, you can create a bootable USB for it by using a Mac.

1. Prepare the .iso file

Download it, copy it, whatever it takes to prepare that Linux-based OS .iso file

2. Convert the .iso file into a .img.dmg

@kmplngj
kmplngj / geekmagic-smalltv-07c9f4.yaml
Last active May 7, 2025 16:23
GeekMagic Display Small TV ESPHome Config
# This ESPHome configuration file is for a GeekMagic Display device (esp01).
# It sets up the device to display pages of text and notifications,
# with customizable intervals and padding. The display is updated
# periodically and can show different pages based on Home Assistant sensors.
# The configuration includes:
# - WiFi setup with fallback hotspot
# - Web server for remote access
# Usage:
@kmplngj
kmplngj / geek_display_smalltv_formatting_test
Created January 2, 2025 11:59
Geek Display Example String Formatting
[initial]Web[/initial][column_1][font_small][red]This is text in column 1.\n [column_2]This is text in column 2.\n