Skip to content

Instantly share code, notes, and snippets.

View SoCuul's full-sized avatar
😎

SoCuul

😎
View GitHub Profile
@SoCuul
SoCuul / tintColor.swift
Created August 16, 2026 21:24
Get macOS 26+ icon tint color
struct AppearanceTintColor {
@objc protocol IconAppearanceConfiguring {
var iconAppearanceTheme: UInt32 { get }
var iconTintColorName: UInt32 { get }
var otherIconTintColor: CGColor? { get }
var resolvedIconTintColor: NSColor? { get }
}
func config() -> IconAppearanceConfiguring? {
let workspace = NSWorkspace.shared as NSObject
@SoCuul
SoCuul / regToXML.ps1
Created July 14, 2026 02:37
Convert .reg to XML
<# Added by Michael Pietroforte #>
Param(
[Parameter(Mandatory=$True)][string]$regPath,
[Parameter(Mandatory=$True)][string]$xmlPath
)
<#
Orginal script by Malcolm McCaffery
More info at the http://chentiangemalc.wordpress.com/2014/07/02/importing-reg-files-into-group-policy-preferences/
#>
@SoCuul
SoCuul / PrefPaneLoader.m
Created May 12, 2026 02:20
Load macOS Preference Pane into application
#import "AppDelegate.h"
#import "PreferencePanes/NSPreferencePane.h"
@interface AppDelegate ()
@property (strong) IBOutlet NSWindow *window;
@property (strong) NSPreferencePane *prefPaneObject;
@property (strong) NSView *prefView;
@end
@SoCuul
SoCuul / notarize.sh
Last active April 10, 2026 01:13
Notarize & staple bundles/DMGs with Apple
#!/usr/bin/env bash
set -uo pipefail
PROFILE="<keychain-profile-name>"
# Check for missing arguments
if [ "$#" -lt 1 ]
then
echo
echo "Usage: notarize <bundle/dmg>"
@SoCuul
SoCuul / compile.sh
Last active September 17, 2025 04:51
Fix pinch gesture on macOS
clang -fobjc-arc -F/System/Library/PrivateFrameworks -framework PreferencePanesSupport fixPinch.m
@SoCuul
SoCuul / mac_keyremapping.md
Created May 25, 2025 13:07 — forked from paultheman/mac_keyremapping.md
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.

@SoCuul
SoCuul / Cross-compiling-for-Windows.md
Created March 28, 2025 04:20
Veyon: Cross compiling for Windows
@SoCuul
SoCuul / linkwarden-colour-theming.user.js
Created May 7, 2024 04:38
Linkwarden Colour Theming
// ==UserScript==
// @name Linkwarden Colour Theming
// @namespace com.socuul.linkwarden_colour_theming
// @version 0.0.1
// @description
// @author SoCuul
// @match http://yourlinkwardeninstance.com/*
// @match https://yourlinkwardeninstance.com/*
// @icon https://www.google.com/s2/favicons?domain=https://linkwarden.app&sz=128
// @grant GM_addStyle
@SoCuul
SoCuul / BorderCalculator_PRV.md
Last active December 21, 2022 02:52
Border Calculator | Privacy Policy

Privacy Policy

Last updated: December 20, 2022

Border Calculator collects absolutely no data on users of the app.
Other than the information directly provided to the developer by app stores, no advertising or analytics frameworks are used in the app.

Border Calculator does not collect, transmit, distribute or sell your data.

@SoCuul
SoCuul / CKCoupons_PRV.md
Last active March 29, 2023 06:32
CK Coupons | Privacy Policy

Privacy Policy

Last updated: March 29, 2023

This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You.

We use Your Personal data to provide and improve the Service. By using the Service, You agree to the collection and use of information in accordance with this Privacy Policy. This Privacy Policy has been created with the help of the TermsFeed Privacy Policy Generator.

Interpretation and Definitions

Interpretation

The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural.

Definitions

For the purposes of this Privacy Policy: