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

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.

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
@Apihplays
Apihplays / draw10m.lsp
Created May 31, 2025 07:53
Autocad LISP
(defun c:draw15line ( / pt pt2)
(setq pt (getpoint "\nSpecify start point: ")) ; Prompt to specify the first point
(command "LINE" pt) ; Start the line at the first point
(while t ; Loop to keep drawing lines incrementally
(setq pt2 (polar pt (angle pt (getpoint "\nPick next point: ")) 10)) ; Calculate the next point 10 meters away from the start point
(command pt2) ; Draw the line to the new point
(setq pt pt2) ; Update the start point for the next line to be the endpoint of the current line
(princ) ; Keep the loop running for continuous lines
)
@Apihplays
Apihplays / tstomp4.bat
Last active February 2, 2025 03:37
Convert .ts to .mp4
for %%f in (*.ts) do call ffmpeg -i "%%~f" -vcodec copy -acodec copy "%%~nf.mp4"
@Apihplays
Apihplays / SWEX on Android 7-11+ Rooted.md
Last active August 10, 2023 13:48 — forked from vdurante/readme.md
How to trust a System Certificate on rooted Android 11+ using Magisk module

Pre-Requisites

  • Windows - download cmder. I find it easier to use OpenSSL and nix comands through cmder without having to install anything. Just download, extract the zip, and run cmder.exe
  • Android - it must be rooted
  • Android - you need a file manager with root capabilities. I like using Amaze
  • Magisk module - Since android 7 up to android 11+ , system can not be R/W by any mean anymore unless you flash and forget this module to make thing easier. Go grab this Magisk OverlayFS

How-To

@Apihplays
Apihplays / Warframe Macros.ahk
Created December 31, 2021 00:34 — forked from KarlRamstedt/Warframe Macros.ahk
Spam macros for Slide-Attack, Ability, Primary-fire and Melee in Warframe. Including non-spam Contagion macro.
#NoEnv ; For performance and compatibility with future AutoHotkey releases
SendMode Input ; For speed and reliability
SetBatchLines -1 ; No script sleep, for more consistent timing behavior. Default behavior is 10ms execution then 10ms sleep
ListLines Off ; Increase performance by a few percent by not logging the lines of code that are executed
; Modifiers: [+ = Shift] [^ = Ctrl] [# = Win] [! = Alt] [* = Ignores unspecified modifiers] [~ = Doesn't block normal function] [$ = Forces hook, preventing hotkey self-trigger] More info here: https://www.autohotkey.com/docs/KeyList.htm
; Time values are in ms(MilliSeconds), 1/1000 of a second. 1000/delay = activationsPerSecond. I.e: 50ms delay -> 1000/50 = 20 per sec
; Time values are typically rounded up to a multiple of 10ms by the Windows time-keeping system. So there's no point to Timer/Sleep values that aren't multiples of 10. Higher precision may be achieved via Loop+DllCall, but is rarely relevant and certainly doesn't matter for this script
global slideDela
@Apihplays
Apihplays / 99-sysctl.conf
Created June 14, 2021 08:16
default TTL ipv4 and default hop limit ipv6. Usefull for me that using mobile data with unlimited internet but with quota hotspot , this setting bypass the quota limitation for the linux distro or android phone or anything that using linux kernel .
net.ipv4.ip_default_ttl=65
net.ipv6.conf.all.hop_limit=65
@Apihplays
Apihplays / appmanifest_230410.acf
Last active February 7, 2022 19:12
warframe manifest data on linux incase copying the game from windows10 NTFS partition to linux ext4. Copy the whole Steamapps/common/warframe folder and the acf to new drive and launch the warframe
"AppState"
{
"appid" "230410"
"Universe" "1"
"name" "Warframe"
"StateFlags" "4"
"installdir" "Warframe"
"LastUpdated" "1608036271"
"UpdateResult" "4"
"SizeOnDisk" "30288352722"
@Apihplays
Apihplays / enable_cmd_for_cu_update.reg
Created April 17, 2021 10:30 — forked from rahman541/enable_cmd_for_cu_update.reg
Enable right click "Open command window here.." option for windows 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""
@Apihplays
Apihplays / pocket kingdown own the world
Last active October 31, 2022 15:40
pocket kingdom own the world uncomplete guide. Ripoff from gamefaq/gamespot and editted
please visit my website at http://pk.warcry.com/
==============================================================================
RANKING UP YOUR UNITS
==============================================================================
You can begin to rank up your units after you have completed the first map.
And you'll need to too, as the second boss is a real pain, and might very well
be impossible to defeat with only the most basic troops.
Once you complete the first map, your Lab will open. Visit the Lab from the
main kingdom menu and you will have an option to RankUp your units. In order