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 27, 2026 20:15
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.
"""
@AW-Britt
AW-Britt / restore_file_exists_method.rb
Created June 5, 2025 05:48
Workaround vagrant-vbguest plugin fail due to NoSuchMethod error on `File.exists?`
# Place this blurb at the top of your Vagrantfile to allow the unpatched
# version of the Vagrant vagrant-vbguest plugin to properly execute
# in newer Ruby environments where File.exists is no longer supported
#
# Extend the Ruby File class to restore the deprecated exists method
# calls File.exist instead
unless File.respond_to?(:exists?)
class << File
def exists?(path)
warn "File.exists? is deprecated; use File.exist? instead." unless ENV['SUPPRESS_FILE_EXISTS_WARNING']
@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 February 10, 2026 20:52
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 February 13, 2026 23:52
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 February 13, 2026 20:46
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