Skip to content

Instantly share code, notes, and snippets.

View SoCuul's full-sized avatar
😎

SoCuul

😎
View GitHub Profile
@stephancasas
stephancasas / logprefs.sh
Created February 21, 2026 09:29
macOS zsh utility for logging preference keys of a given process
logprefs () {
LOG_PROCESS="${*}"
log stream \
--level debug \
--style compact \
--predicate '((process == "'"$LOG_PROCESS"'") AND (subsystem == "com.apple.defaults") AND (eventMessage contains[cd] "for key")) AND NOT ((eventMessage contains[cd] "AppleLanguages") OR (eventMessage contains[cd] "cursorIsCustomized") OR (eventMessage contains[cd] "AppleReduceDesktopTinting") OR (eventMessage contains[cd] "reduceMotion"))' \
| perl -ne 'printf "%-70s %-70s\n", $1, $2 if /key (\S+) .*?Domain: ([^,]+)/'
}
@NTFSvolume
NTFSvolume / onedrive_download_file.py
Last active October 10, 2025 19:30
Download OneDrive File
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "aiohttp",
# "yarl",
# ]
# ///
from __future__ import annotations
import argparse
@usagimaru
usagimaru / HiddenMacOSDebuggingPanel.md
Last active February 12, 2026 22:16
Enables useful debugging panel in macOS apps

Use _NS_4445425547 or NS🐞 for enables debuggging panel. When enabled it, a ladybug 🐞 menu appears in the app menu bar.

“4445425547” means DEBUG in Unicode table.

0x44=D
0x45=E
0x42=B
0x55=U
0x47=G

@dbilanoski
dbilanoski / windows11-ms-settings-uri-commands.csv
Last active May 12, 2026 06:14
Complete List Of Windows 11 MS-Settings URI Commands
Category Settings Page URI Command
Accounts Access work or school ms-settings:workplace
Accounts Email & app accounts ms-settings:emailandaccounts
Accounts Family & other people ms-settings:otherusers
Accounts Set up a kiosk ms-settings:assignedaccess
Accounts Sign-in options ms-settings:signinoptions
Accounts Sync your settings ms-settings:sync
Accounts Windows Hello setup ms-settings:signinoptions-launchfaceenrollment
Accounts Your info ms-settings:yourinfo
Apps Apps & Features ms-settings:appsfeatures
@dbilanoski
dbilanoski / windows11-shell-folders-by-clsid.csv
Last active May 4, 2026 17:17
Complete List Of Windows 11 Shell Folders By CLSID GUIDs
Name Shell Command Shortcut
%UserProfile% explorer "shell:::{59031a47-3f72-44a7-89c5-5595fe6b30ee}"
%UserProfile%\Desktop explorer "shell:::{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}"
%UserProfile%\Documents explorer "shell:::{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}"
%UserProfile%\Downloads explorer "shell:::{088e3905-0323-4b02-9826-5d99428e115f}"
%UserProfile%\Pictures explorer "shell:::{24ad3ad4-a569-4530-98e1-ab02f9417aa8}"
Add Network Location explorer "shell:::{D4480A50-BA28-11d1-8E75-00C04FA31A86}"
Additional Information explorer "shell:::{C58C4893-3BE0-4B45-ABB5-A63E4B8C8651}\resultPage"
Advanced Problem Reporting Settings explorer "shell:::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}\pageAdvSettings"
Advanced sharing settings explorer "shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}\Advanced"
@dbilanoski
dbilanoski / windows11-shell-folders-by-name.csv
Last active May 4, 2026 16:50
Complete List Of Windows 11 Shell Folders By Name
Name Shell Command Shortcut
3D Objects explorer "shell:3D Objects"
AccountPictures explorer "shell:AccountPictures"
AddNewProgramsFolder explorer "shell:AddNewProgramsFolder"
Administrative Tools explorer "shell:Administrative Tools"
AppData explorer "shell:AppData"
AppDataDesktop explorer "shell:AppDataDesktop"
AppDataDocuments explorer "shell:AppDataDocuments"
AppDataFavorites explorer "shell:AppDataFavorites"
AppDataProgramData explorer "shell:AppDataProgramData"
@asheroto
asheroto / Disable-EdgeAnnoyances.reg
Last active May 8, 2026 07:04
Disables Edge’s first run, sign-in, Copilot, shopping, rewards, sync, sidebar, new tab clutter, and more; keeps SmartScreen, downloads, and home button enabled.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"ShowDownloadsToolbarButton"=dword:00000001
"ShowRecommendationsEnabled"=dword:00000000
"CopilotPageContext"=dword:00000000
"ShowAcrobatSubscriptionButton"=dword:00000000
"PersonalizeTopSitesInCustomizeSidebarEnabled"=dword:00000000
"Microsoft365CopilotChatIconEnabled"=dword:00000000
"NewTabPageContentEnabled"=dword:00000000
@bbbenji
bbbenji / bambu_lab-lovelace.yaml
Last active May 10, 2026 12:38
Bambu Lab X1C Lovelace Dashboard
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: custom:mushroom-title-card
title: Bambu Lab X1C
alignment: start
- type: custom:mod-card
card:
type: custom:mushroom-chips-card
@AdrianCassar
AdrianCassar / Title IDs.json
Last active March 24, 2026 23:36
Xbox 360 Title IDs
[
{
"titleid": "4156004D",
"title": "Cabela's Outdoor Adventure"
},
{
"titleid": "555308CD",
"title": "Just Dance 2015"
},
{
@paultheman
paultheman / mac_keyremapping.md
Last active May 5, 2026 09:56
Guide on how to remap Keyboard keys on macOS

Guide on how to remap Keyboard keys on macOS

Update 17.10.2024: macOS 15 no longer requires root privileges for hidutil, you need to add hidutil and Terminal to 'Input Monitoring' in Settings/Privacy & Security tab.

Update 13.04.2024: On macOS 14.2 hidutil requires root privileges.

If you have a mac with an INT (ISO) keyboard you might want to change the ± key to ~. During my research I found that the information on this topic is not at all centralized. I prefer this option because it does not involve installing new software.

With macOS 10.12 Sierra Apple introduced hidutil as a tool to remap keyboard keys. See TN2450.