Skip to content

Instantly share code, notes, and snippets.

View kaem-e's full-sized avatar
💭
a

Kaem kaem-e

💭
a
View GitHub Profile
@zsimic
zsimic / DefaultKeyBinding.dict
Last active July 3, 2025 19:09
OSX key bindings
{
/* ~/Library/KeyBindings/DefaultKeyBinding.dict
See https://gist.github.com/zsimic/1367779, prefix cheatsheet:
Char Short Key
$ S- Shift ⇧
^ C- CTRL ⌃
~ O- Option ⌥ (⊞ Win key position on PC)
@ M- Command ⌘ (Alt position on PC)
# Numeric Keypad
@ripter
ripter / gist:4270799
Created December 12, 2012 19:29 — forked from hashmal/gist:874792
Added check for boolean.
-- Print contents of `tbl`, with indentation.
-- `indent` sets the initial level of indentation.
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
elseif type(v) == 'boolean' then
@fauxpark
fauxpark / applefn.patch
Last active August 17, 2025 19:58
QMK Apple Fn
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index 18f8b0bbfc..4ef3e230e4 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -878,6 +878,10 @@ ifeq ($(strip $(JOYSTICK_ENABLE)), yes)
endif
endif
+ifeq ($(strip $(APPLE_FN_ENABLE)), yes)
+ OPT_DEFS += -DAPPLE_FN_ENABLE
{
"background" : "#1d2021",
"black" : "#665C54",
"blue" : "#7DAEA3",
"brightBlack" : "#928374",
"brightBlue" : "#7DAEA3",
"brightCyan" : "#89B482",
"brightGreen" : "#A9B665",
"brightPurple" : "#D3869B",
"brightRed" : "#EA6962",
@talaviram
talaviram / add_debug_entitlement.sh
Last active September 13, 2025 21:08
Simple Utility Script for allowing debug of hardened macOS apps.
#! /bin/bash
# Simple Utility Script for allowing debug of hardened macOS apps.
# This is useful mostly for plug-in developer that would like keep developing without turning SIP off.
# Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg
# Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers.
#
# Please note:
# - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP.
# - Some hosts uses separate plug-in scanning or sandboxing.
# if that's the case, it's required to patch those (if needed) and attach debugger to them instead.

Everforest - Alacritty

In ~/.config/alacritty/alacritty.yml:

# Define
schemes:
  everforest_dark_hard: &everforest_dark_hard
    primary:
      background: '#272e33'
/Library/OFX/Plugins/Red Giant Universe/Universe_Blur_Blur_Premium_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_Blur_Compound_Blur_Premium_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_Blur_Spot_Blur_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_CrumplePop_Finisher_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_CrumplePop_Fisheye_Fixer_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_CrumplePop_Grain16_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_CrumplePop_OverLight_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_CrumplePop_ShrinkRay_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_Distort_Camera_Shake_Pro_OFX_Fx.ofx.bundle
/Library/OFX/Plugins/Red Giant Universe/Universe_Distort_Chromatic_Aberration_OFX_Fx.ofx.bundle
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active September 21, 2025 14:51
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@datio
datio / enable-wifi.ps1
Last active September 24, 2025 02:16
Enable Windows 10 & 11 WiFi Hotspot - Powershell Script
# https://stackoverflow.com/questions/45833873/enable-win10-inbuild-hotspot-by-cmd-batch-powershell/60444585#answer-60444585
[Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null
Add-Type -AssemblyName System.Runtime.WindowsRuntime
$asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
Function Await($WinRtTask, $ResultType) {
$asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
$netTask = $asTask.Invoke($null, @($WinRtTask))
$netTask.Wait(-1) | Out-Null
$netTask.Result
@paul-vd
paul-vd / readme.md
Last active August 25, 2025 10:54
GPU Passthrough Fedora