Skip to content

Instantly share code, notes, and snippets.

@ElishaAz
ElishaAz / layout-remap.patch
Last active January 28, 2026 11:25
Add layout-remaping to Helix (as in https://github.com/helix-editor/helix/pull/5046 )
diff -ura helix-25.07.1/helix-term/src/application.rs helix-25.07.1-patched/helix-term/src/application.rs
--- helix-25.07.1/helix-term/src/application.rs 2025-07-18 17:31:37.000000000 +0300
+++ helix-25.07.1-patched/helix-term/src/application.rs 2026-01-28 11:22:10.647758731 +0200
@@ -25,7 +25,7 @@
config::Config,
handlers,
job::Jobs,
- keymap::Keymaps,
+ keymap::{Keymaps, LayoutRemap},
ui::{self, overlay::overlaid},
@ElishaAz
ElishaAz / linux-etcfs-suspend.patch
Created August 18, 2024 11:04
Bedrock Linux suspend kernel patch
diff -ura linux-6.9.7/kernel/power/process.c linux-6.9.7.new/kernel/power/process.c
--- linux-6.9.7/kernel/power/process.c 2024-07-18 14:51:49.353039741 +0300
+++ linux-6.9.7.new/kernel/power/process.c 2024-07-18 14:56:47.393032621 +0300
@@ -23,7 +23,7 @@
/*
* Timeout for stopping processes
*/
-unsigned int __read_mostly freeze_timeout_msecs = 20 * MSEC_PER_SEC;
+unsigned int __read_mostly freeze_timeout_msecs = 5 * MSEC_PER_SEC;
@ElishaAz
ElishaAz / gaussian_splatting_howto.md
Last active February 6, 2024 13:54
Gaussian Splatting HowTo

Gaussian Splatting

Build the model

Install

# Make sure CUDA 12.1 is installed first
apt list cuda-12-1
@ElishaAz
ElishaAz / NECEncoder.java
Last active February 16, 2022 16:22
An IR NEC encoder for Java
/**
* Encodes a packet in NEC for transmitting in IR.
* <p>
* Can be used in android as follows:
* <pre>{@code
* int frequency = 38028;
* NECEncoder encoder = new NECEncoder(frequency);
*
* ConsumerIrManager cim = (ConsumerIrManager) getApplicationContext().getSystemService(Context.CONSUMER_IR_SERVICE);
*
@ElishaAz
ElishaAz / gamesir_t1d_bleak.py
Last active March 14, 2025 23:06
A client for the GameSir T1D controller in python, using bleak. And a controller for the Tello using it.
"""
Dependnecies:
```
pip install bleak
```
Based on (https://github.com/Diallomm/hack_GamesirT1d/blob/main/src/T1D.py).
Edited to use `bleak` for cross-platform support.
Edited by: Elisha Azaria
"""