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 / gist:d4aae379e8d3575975c2c56cd1ee672f
Created January 2, 2026 11:38
postgresql docker compose
services:
psql_db:
user: root
container_name: psql_db
image: postgres
restart: on-failure
# set shared memory limit when using docker-compose
shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
environment:
@0xAungkon
0xAungkon / lxd-fix-docker.sh
Last active October 18, 2025 04:15
LXD Container Docker Permission Denied Fix
export CONTAINER_NAME 1panel
echo "Setting container $CONTAINER_NAME as privileged and unconfined..."
lxc config set "$CONTAINER_NAME" security.privileged true
lxc config set "$CONTAINER_NAME" raw.lxc "lxc.apparmor.profile=unconfined"
# Restart container
echo "Restarting container $CONTAINER_NAME..."
lxc restart "$CONTAINER_NAME"
echo "Done. Docker should now work inside $CONTAINER_NAME."
@0xAungkon
0xAungkon / compose.yml
Created September 7, 2025 16:25
Gitingist Compose File
version: '3.8'
services:
gitingest:
image: 0xaungkon/gitingest:latest
container_name: gitingest
restart: unless-stopped
@0xAungkon
0xAungkon / Dockerfile
Last active July 25, 2025 18:14
Github Action Runner Docker Instance
FROM debian:bookworm
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
unzip \
ca-certificates \
gnupg \
libicu72 \
libkrb5-3 \
@0xAungkon
0xAungkon / codeserver.sh
Last active July 27, 2025 16:37
Official Vscode Server Run
#!/bin/bash
# ExecStart=/usr/bin/code serve-web --host 0.0.0.0 --without-connection-token --accept-server-license-terms
# Use this for all address to publish the port
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root." >&2
exit 1
fi
@0xAungkon
0xAungkon / app.py
Created July 16, 2025 03:16
read mdb(Microsoft Access) files
import subprocess
import pandas as pd
from io import StringIO
mdb_file = 'att2000.mdb'
att_table_name = 'CHECKINOUT'
user_table_name = 'USERINFO'
def get_df(table_name):
# Export table using mdbtools
@0xAungkon
0xAungkon / danted.conf
Created July 7, 2025 05:01
Danted Server Conf
logoutput: syslog
internal: eth0 port = 1080
internal: tailscale0 port = 1080
external: eth0
# external: wlan0
socksmethod: username none
user.notprivileged: nobody
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
@0xAungkon
0xAungkon / portainer-compose.yml
Created July 4, 2025 14:12
Portainer Docker compose
services:
portainer:
image: portainer/portainer-ce:alpine
container_name: portainer
command: -H unix:///var/run/docker.sock
ports:
- "8011:8000"
- "9000:9000"
- "9443:9443"
volumes:
@0xAungkon
0xAungkon / portainer-connect.md
Created July 2, 2025 16:08
portainer remote connect configuration

Run:

sudo systemctl edit docker.service

Insert:

[Service]
@0xAungkon
0xAungkon / tabular-ifconfig.py
Created June 30, 2025 02:40
A code snipts to open show network configuration over
import subprocess
import re
import shutil
import socket
YELLOW = '\033[93m'
GREEN = '\033[92m'
WHITE = '\033[97m'
GREY = '\033[90m'
RESET = '\033[0m'