Skip to content

Instantly share code, notes, and snippets.

View AjmalShajahan's full-sized avatar
😎

Ajmal S AjmalShajahan

😎
View GitHub Profile
@DerEchteJoghurt
DerEchteJoghurt / open-float.py
Last active January 6, 2026 23:59 — forked from rafrombrc/open-float.py
Variation of YaLTeR's `open-float.py` script that supports specifying float window height and width
#!/usr/bin/python3
"""
Like open-float, but dynamically. Floats a window when it matches the rules.
Some windows don't have the right title and app-id when they open, and only set
them afterward. This script is like open-float for those windows.
Usage: fill in the RULES array below, then run the script.
"""
from dataclasses import dataclass, field
import json
@rafrombrc
rafrombrc / open-float.py
Last active January 3, 2026 14:38
Variation of YaLTeR's `open-float.py` script that supports specifying float window height and width
#!/usr/bin/python3
"""
Like open-float, but dynamically. Floats a window when it matches the rules.
Some windows don't have the right title and app-id when they open, and only set
them afterward. This script is like open-float for those windows.
Usage: fill in the RULES array below, then run the script.
"""
@micjabbour
micjabbour / install-ycm-termux.md
Last active April 12, 2025 09:42
How to install YouCompleteMe on Termux

How to install YouCompleteMe on Termux

Problem

As of March 2021, YouCompleteMe compiles fine on Termux, but it crashes once the plugin is loaded. The following error can be noticed in the logs:

ImportError: dlopen failed: cannot locate symbol "_ZNSt6__ndk14__fs10filesystem18__weakly_canonicalERKNS1_4pathEPNS_10error_codeE" referenced by "/data/data/com.termux/files/home/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so"...
@michaelbutler
michaelbutler / Steam_Proton_Exe.md
Last active January 23, 2026 16:44
How to run another .exe in an existing proton wine prefix

Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?

Simply run this command in a terminal:

cd /path/to/steam/steamapps/compatdata/20920/pfx

STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
    "$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
@oofnikj
oofnikj / answerfile
Last active January 24, 2026 23:13
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active January 20, 2026 16:45
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg