Skip to content

Instantly share code, notes, and snippets.

@iacchus
iacchus / termux.properties
Created January 21, 2026 22:35
termux.properties snippet: "extra-keys" config (termux keyboard)
## Configuration with additional popup keys (swipe up from an extra key)
extra-keys = [ \
[ \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "CTRL e CTRL u vw SPACE ENTER", display: "𝚠𝚔𝚒", popup: \
{macro: "CTRL e CTRL u vwfunc ENTER", display: "vw📁"}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
@iacchus
iacchus / termux-x11-keyboard
Created January 21, 2026 22:29
termux:11 extra keys config
[[
{macro: "", display: "", popup: {macro: "", display: ""}},
{macro: "ESC", display: "𝙴𝚂𝙲", popup: {macro: "", display: ""}},
{macro: "F1", display: "F1", popup: {macro: "", display: ""}},
{macro: "F2", display: "F2", popup: {macro: "", display: ""}},
{macro: "F3", display: "F3", popup: {macro: "", display: ""}},
{macro: "F4", display: "F4", popup: {macro: "", display: ""}},
{macro: "F4", display: "F5", popup: {macro: "", display: ""}},
{macro: "F6", display: "F6", popup: {macro: "", display: ""}},
{macro: "F7", display: "F7", popup: {macro: "", display: ""}},
@iacchus
iacchus / gist:ee629b4c3372349a5a4091029e7c8b8c
Created January 21, 2026 22:15
termux.properties extra-keys
## Configuration with additional popup keys (swipe up from an extra key)
extra-keys = [ \
[ \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "CTRL e CTRL u vw SPACE ENTER", display: "𝚠𝚔𝚒", popup: \
{macro: "CTRL e CTRL u vwfunc ENTER", display: "vw📁"}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
{macro: "", display: "", popup: {macro: "", display: ""}}, \
@iacchus
iacchus / color-gear-trim.py
Created January 13, 2026 06:05
Android's Color Gear Strip Exported Palette Image's Watermark (for Termux)
#!/data/data/com.termux/files/usr/bin/env python
import sys
from wand.image import Image
filename = sys.argv[1]
img = Image(filename=filename)
@iacchus
iacchus / generate_key.sh
Created July 10, 2025 11:10 — forked from cevaris/generate_key.sh
Sign and Verify using Python pycrypto
#!/usr/bin/env bash
# Generate RSA private key
openssl genrsa -out private_key.pem 1024
@iacchus
iacchus / 0_export_public_key.py
Created July 10, 2025 11:08 — forked from carlok/0_export_public_key.py
Python sign message with private key and verify with public key
#!/usr/bin/env python
"""Extract the public key from the private key and write to a file.
"""
from Crypto.Hash import SHA256
from Crypto.Signature import PKCS1_v1_5
from Crypto.PublicKey import RSA
with open("private_key.pem", "r") as src:
private_key = RSA.importKey(src.read())
@iacchus
iacchus / gist:594530a0a75060136da94006d363e8ff
Created June 10, 2025 20:26 — forked from narrowdesign/gist:361eb935a42daab5cf4c
Touch events that behave exactly like mouse events while mouse dragging or touch moving.
// vars to keep track of the "mouse" during touchmove
var mouseX;
var mouseY;
// create the custom events so you can dispatch them later
var touchover = new Event("touchover");
var touchout = new Event("touchout");
var touchup = new Event("touchup");
var element = document.getElementById("dropTargetDivName");
@iacchus
iacchus / jupyter-lab-build-memory.md
Created June 9, 2025 15:50 — forked from ingeniumstudio/jupyter-lab-build-memory.md
How to build jupyter lab assets without running out-of-memory

How to build jupyter lab assets without running out-of-memory

  1. Limit the amount of memory used with
export NODE_OPTIONS='--max_old_space_size=2096'
  1. Build
@iacchus
iacchus / beautiful.rest.api.docs.in.markdown.md
Created May 31, 2025 17:36 — forked from azagniotov/beautiful.rest.api.docs.in.markdown.md
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@iacchus
iacchus / termux.properties
Created June 8, 2024 12:27
termux keyboard
## Configuration with additional popup keys (swipe up from an extra key)
extra-keys = [ \
[ \
{key: ESC, display: ""}, \
{key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \
{key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \
{macro: "ESC :q ENTER", display: ":q", popup: {macro: "ALT g", display: A-g}}, \
{macro: ",t", display: "tree", popup: {macro: ", n", display: "focus"}}, \
{macro: 'y :%s/ CTRL r " //gic LEFT LEFT LEFT LEFT', display: ":%s"}, \
{macro: "exa SPACE --long SPACE --tree ENTER", display: "exa", popup: {macro: "lsd SPACE --long SPACE --tree ENTER", display: "lsd"}}, \