Skip to content

Instantly share code, notes, and snippets.

View undali's full-sized avatar
🥂
Wandering!

Mamun undali

🥂
Wandering!
View GitHub Profile
@undali
undali / podman.md
Created August 28, 2026 09:15
podman
podman create -v /mnt/storage/chart_history:/mnt/:z --name dukascopy -it 'node:trixie-slim' /bin/bash
##### (:z is for selinux, :z means shared, :Z private)
podman start -ai dukascopy

one time temporary python uv container (alpine), mounted current dir

podman run --rm -it -v "$(pwd)":/app/:z --name temp -it 'ghcr.io/astral-sh/uv:alpine' /bin/sh

@undali
undali / browser_session_json.py
Created August 27, 2026 07:28
Can inspect firefox session json saved/exported from 'Tab Session Manager' extension
import json
from deepdiff import DeepDiff
from datetime import datetime
json1 = json.load(open("1.json"))
json2 = json.load(open("2.json"))
# Exclude value changes if you only want structural differences
# diff = DeepDiff(json1, json2, ignore_order=True, report_repetition=False)
# print(diff.pretty())
@undali
undali / proxmox_lxc.md
Created August 21, 2026 09:50
proxmox, lxc, alpine os

Managing LXC Templates - from proxmox cli

pveam update

# View available templates (optional)
pveam available

# Download a standard Ubuntu template

@undali
undali / remove_audio_track.md
Created August 4, 2026 12:30
delete first audio/sound track

Remove first audio track from media file.

ffmpeg -i input.mp4 -map 0 -map -0:a:0 -c copy output.mp4

Open browser console while logging into discord.com,

Paste this into browser console:

(w=webpackChunkdiscord_app).push([[Symbol()],{},o=>{try{Object.values(o.c).some(e=>e.exports?.setToken&&(w.t=e.exports.getToken()))}catch{}}]),w.t

@undali
undali / external_display_control.md
Created July 21, 2026 05:27
Benq, color mode, fedora

For BenQ GW2491

Getting bus id

ddcutil detect

Display 1
   I2C bus:  /dev/i2c-20

Changing display profile

Configure

win server using this - https://github.com/cedev-1/WindowsServer-Proxmox-HelperScript It may not directly boot into win setup but into uefi terminal, in that case select the boot file from cd drive.

After win installation.

  • Enable rdp
  • Install virtio and qemu guest agent from cd drive.

Enable screen power saving: