Skip to content

Instantly share code, notes, and snippets.

View Apihplays's full-sized avatar
🏠
Working from home

Hafiz Mohamed Apihplays

🏠
Working from home
  • Shah Alam
View GitHub Profile

This guide provides a Python script that creates a virtual mouse for an auto-clicker functionality, specifically configured to run on Linux without requiring sudo after initial setup. It addresses common evdev permission issues by utilizing a udev rule.


These files are required

automation.py

import asyncio
import threading

Custom Conky Setup: Rings & Icons

This is a custom Conky configuration that displays key system metrics (CPU, RAM, Battery) using a clean, modern interface with graphical rings and icons.

Core Features

  • Graphical Rings: CPU, RAM, and Battery levels are each represented by a circular ring that fills up based on usage.
  • Font Awesome Icons: Each metric is paired with a clean, corresponding icon from Font Awesome 6.
  • Dynamic Percentages: The percentage for each metric is displayed clearly beneath the rings.
  • Custom Sizing: The Conky window is configured to fit tightly around the graphical elements for a compact and clean look.
@Apihplays
Apihplays / secured_magisk_daemon.sh
Created June 1, 2026 16:08
Setting TTL to 65 Android 16 using KernelSU
#!/system/bin/sh
# ==============================================================================
# SECURED EVENT-DRIVEN TTL DAEMON FOR ANDROID 16 (WITH FAILSAFES)
# ==============================================================================
TARGET_TTL=65
# FAILSAFE 1: Wait until the system is fully booted and decrypted
# This prevents early boot conflicts that cause bootloops.
while [ "$(getprop sys.boot_completed)" != "1" ]; do