Skip to content

Instantly share code, notes, and snippets.

View 0xAungkon's full-sized avatar
🎯
Focusing

Aungkon Malakar 0xAungkon

🎯
Focusing
View GitHub Profile
@0xAungkon
0xAungkon / source_code_combiner.py
Last active June 27, 2025 12:27
Source Code Combiner
import os
import argparse
import time
parser = argparse.ArgumentParser(description="Combine code files into a markdown document.")
parser.add_argument('--output', required=True, help='Output markdown file path')
parser.add_argument('--folders', required=True, help='Comma-separated list of folders to scan')
parser.add_argument('--extensions', required=True, help='Comma-separated list of file extensions to include')
parser.add_argument('--verbose', action='store_true', help='Enable verbose logging')
args = parser.parse_args()
@0xAungkon
0xAungkon / clean.sh
Created March 16, 2025 07:33
Refresh Docker - Docker Stop and Clean Everything Containers, Images , Networks , Volumns ++
docker stop $(docker ps -q) && docker rm $(docker ps -aq)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
docker network rm $(docker network ls -q | grep -v "bridge\|host\|none")
docker system prune -a --volumes -f
@0xAungkon
0xAungkon / postinst
Created March 11, 2025 19:06
NTOPNG Installation Fixed
#!/bin/sh -e
SUB_DISTRO=`lsb_release -i|cut -f 2`
if test "$SUB_DISTRO" = "Debian"; then
REL=`/usr/bin/lsb_release -c|cut -f 2`
else
REL=`/usr/bin/lsb_release -s -r`
fi
case "$1" in
@0xAungkon
0xAungkon / xrandr-brightness-ctrl
Created February 26, 2025 12:29
Xrandr Brightness Control
import sys
import subprocess
# Ensure correct usage of the script
if len(sys.argv) != 3 or sys.argv[2] not in ["--increase", "--decrease"]:
print("Usage: xrandr-brightness.py <display> <--increase|--decrease>")
sys.exit(1)
display = sys.argv[1] # Get the display name from command-line arguments
action = sys.argv[2] # Get the action (--increase or --decrease)
@0xAungkon
0xAungkon / Makefile
Created February 16, 2025 06:37
Makefile Example
include .env
export
# Django development variables
PYTHON = python3
MANAGE = $(PYTHON) ./manage.py
PORT = 8081
@0xAungkon
0xAungkon / Readme.md
Created February 13, 2025 11:47
Github Standard Branching Names
Branch Name Example Description
main main The primary stable branch, always contains production-ready code.
develop develop The main development branch where new features are integrated before release.
feature/* feature/add-login Used for developing new features; created from develop and merged back when complete.
release/* release/v1.0.0 Prepares a new production release; used for final testing and bug fixes before merging into main and develop.
hotfix/* hotfix/fix-login-bug Used for critical bug fixes in production; branched from main, then merged back into main and develop.
bugfix/* bugfix/fix-typo Fixes non-critical bugs in development; branched from develop and merged back.
@0xAungkon
0xAungkon / Ride Workflow.txt
Last active January 28, 2025 20:44
Uber Websocket Ride Workflow
Workflow:
1. Connect to Websocket , Send Notification to all nearest Drivers. UserEnd
2. Driver Recived The Request and Accept or Decliened the Request. DriverEnd
3. If Anyother driver try to accept the ride after one driver accepted it , He should got a message You Are Late. DriverEnd
4. After Accept The Ride From Driver It should create a trip in database with the nessesary information.
Customer Server Lisener -> /Driver/akfjsehfefh<auth-token>
Driver Server Lisener -> /User/eysafhseuifgy<auth-token>
Sender:
@0xAungkon
0xAungkon / Readme.md
Last active January 18, 2025 10:35
Git Standard Commit Message Best Practice Example Correct

Here’s a detailed table of enterprise-grade examples for Git commit messages tailored for large-scale solutions, considering high collaboration, scalability, and maintainability:

Type Description (When to Use) Commit Message Example
feat For introducing a new feature with clear business value. feat: implement multi-tenant support for enterprise clients
fix For resolving critical bugs or production issues. fix: address race condition in payment processing workflow
docs For
@0xAungkon
0xAungkon / wnmap.sh
Last active December 24, 2024 06:31
Linux Bash Abstract Wrapper
#!/bin/bash
# example: nmapw (nmap wrapper) , a wrapper that does wrap another bash file over actual program
echo 'Nmap Starting......'
nmap "$@"
echo 'Bye! See You Next Time......'
# wnmap localhost -p- => nmap localhost -p-
# wnmap -A localhost -p 80,8001 => nmap -A localhost -p 80,8001
@0xAungkon
0xAungkon / Gnome NoVnc - Browser Based Remote Desktop Protocol.txt
Last active May 14, 2026 19:34
Gnome Vnc Server setup over NoVnc Protocol - Ubuntu 24.1 , Kali 24, Debian 12 Tested
# Replace {user} with your linux username
# e.g. @reboot /home/{user}/.start_vnc.sh -> @reboot /home/lenevo/.start_vnc.sh
sudo apt install task-gnome-desktop #debian
sudo apt install ubuntu-gnome-desktop #ubuntu
sudo apt install kali-desktop-gnome #ubuntu
#install gnome
sudo apt install tigervnc-standalone-server tigervnc-common git dbus-x11
#install tigervnc