Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
👋

Adam Kaminski thimslugga

👋
View GitHub Profile
@yorickdowne
yorickdowne / noble.md
Last active January 31, 2025 04:45
Ubuntu Noble Numbat

Ubuntu Noble Numbat

To start, read the official release notes.

If your install fits into "vanilla Ubuntu plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Ubuntu 24.04 "Noble Numbat" from Ubuntu 22.04 "Jammy Jellyfish" can be helpful. 3rd-party repos are handled with a find command.

Note upgrade is only supported from Ubuntu 22.04 or later to Ubuntu 24.04. If you are on Ubuntu 20.04, upgrade to Ubuntu 22.04 first. Then once on Ubuntu 22.04, you can upgrade to Ubuntu 24.04.

@jrwagz
jrwagz / wyze-outdoor-plug-esphome-template.yaml
Created October 30, 2023 04:25
ESPHome Template for Wyze Outdoor Plug, with total daily energy added. Based off of: https://digiblur.com/2023/09/03/wyze-outdoor-plug-esphome-bluetooth-proxy-how-to/#esphome-yaml
substitutions:
# Higher value gives lower watt readout
current_res: "0.001"
# Lower value gives lower voltage readout
voltage_div: "770"
update_time: 10s
esphome:
name: ${device_name}
friendly_name: ${device_name}
@TaufikAchmad
TaufikAchmad / toggleScrollBehavior.scpt
Last active January 5, 2025 23:33
AppleScript to toggle scroll behavior in macOS Sonoma
-- Check the current state of Natural Scrolling
tell application "System Settings"
activate
end tell
tell application "System Events"
tell process "System Settings"
delay 0.5
click menu item "Trackpad" of menu "View" of menu bar 1
delay 0.5
@shvchk
shvchk / update-podman.sh
Last active December 26, 2024 04:47
Update podman to 4.3.1 on Ubuntu 22.04 jammy
#! /usr/bin/env bash
set -euo pipefail
echo 'deb http://archive.ubuntu.com/ubuntu/ lunar main universe' > /etc/apt/sources.list.d/lunar.list
cat > /etc/apt/preferences.d/podman.pref << EOF
Package: podman buildah golang-github-containers-common libsubid4 netavark
Pin: release n=lunar
Pin-Priority: 990
@BuonOmo
BuonOmo / editorconfig2zedsetting.rb
Created September 25, 2023 00:35
Generate a `.zed/settings.json` file from `.editorconfig`
# frozen_string_literal: true
require "bundler/inline"
gemfile(true, quiet: 1) do
source "https://rubygems.org"
gem "editorconfig"
end
require "json"
@itsmikita
itsmikita / macos-iso.md
Last active May 10, 2025 20:21
Extract ISO image from macOS Somona installer
@YOU54F
YOU54F / README.md
Last active May 15, 2024 07:56
Apple Silicon and Virtual Machines: Beating the 2 VM Limit
@steven-michaud
steven-michaud / ThirdPartyKexts.md
Last active May 13, 2025 05:50
Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

Running Third Party Kernel Extensions on Virtualization Framework macOS Guest VMs

As of macOS 12 (Monterey), Apple's Virtualization framework has nice support for macOS guest virtual machines, but with severe limitations: For example you can't install a macOS guest on Intel Macs, install guests with newer versions of macOS than the host, copy and paste between the host and the guest, or install third party kernel extensions in the guest. As usual for Apple, the functionality they do support is nicely implemented, but they've left out so much that the result is only marginally useful -- at least compared to

@chenxiaolong
chenxiaolong / example.yaml
Created July 19, 2023 00:53
Custom Ansible module to manage the entire VyOS config
---
- hosts: vyos
vars:
# This would ideally go in the host vars.
vyos_config:
# ...
# The structure is identical to what `show configuration json pretty` in
# operational mode produces. For the vast majority of VyOS commands, the
# command <-> JSON translation is 1:1. For example, the command:
#
@theevilbit
theevilbit / macos_sonoma_launch_constraints.txt
Last active September 6, 2024 07:52
macOS Sonoma (14) Launch Constraints
Original by LinuS Henze for iOS16: https://gist.github.com/LinusHenze/4cd5d7ef057a144cda7234e2c247c056
Following his format I updated it for macOS Sonoma (14) and I guess it's the same for iOS17, but didn't cross check.
Constraint Categories:
Category 0:
Self Constraint: N/A
Parent Constraint: N/A
Category 1: