Skip to content

Instantly share code, notes, and snippets.

View SoCuul's full-sized avatar
😎

SoCuul

😎
View GitHub Profile
@NTFSvolume
NTFSvolume / onedrive_download_file.py
Last active September 4, 2025 16:07
Download OneDrive File
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "aiohttp",
# "yarl",
# ]
# ///
from __future__ import annotations
import argparse
@asheroto
asheroto / Disable-EdgeAnnoyances.reg
Last active September 3, 2025 20:26
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 19, 2025 19:10
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
@paultheman
paultheman / mac_keyremapping.md
Last active August 12, 2025 23:27
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.

@sindresorhus
sindresorhus / esm-package.md
Last active September 6, 2025 09:21
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@jlehikoinen
jlehikoinen / gist:28ec2336f82110829868931543b4ed95
Last active March 25, 2025 09:50
Remove signature from Configuration Profile using Quick Action
# Automator > Quick Action
# Workflow receives current "files or folders" in "Finder"
# Add "Run Shell Script" action
# Copy script below to "Run Shell Script" window
# Replace <text-editor-app> at row 36 with your preferred text editor app
# Save quick action as: "Remove signature from Profile & open in <app>"
# Quick Actions live in: ~/Library/Services
# Target folder
@ryantan
ryantan / resign-ipa.md
Last active August 6, 2025 02:46
How to resign an .ipa

How to Resign an iOS App

Let's say you receive an app (e.g. MyApp.ipa) from another developer, and you want to be able to install and run it on your devices (by using ideviceinstaller, for example).

Or your certificates and provision profiles have expired and you want to provide a new build to your clients without having to make a new build on the latest XCode or iOS SDK.

Prepare New Signing Assets

The first step is to attain a Provisioning Profile which includes all of the devices you wish to install and run on. Ensure that the profile contains a certificate that you have installed in your Keychain Access (e.g. iPhone Developer: Some Body (XXXXXXXXXX) ). Download the profile (MyProfile.mobileprovision) so you can replace the profile embedded in the app.

@jbfriedrich
jbfriedrich / nsmb.conf
Last active September 6, 2025 11:55
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active August 21, 2025 11:47
Final Cut Pro X trial reset
#!/usr/bin/swift
// DISCLAIMER
// This script modifies an unencrypted file associated with the trial version of Final Cut Pro.
// Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological
// protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections.
// Distributing this code is therefore legal under the DMCA.
// This script is intended for educational and research purposes, such as exploring trial-related file structures,
@daz
daz / generate-silence.sh
Created October 23, 2017 07:25
Generate a silent AAC audio with ffmpeg
ffmpeg -f lavfi -i anullsrc=r=11025:cl=mono -t <number of seconds> -acodec aac out.m4a