Skip to content

Instantly share code, notes, and snippets.

@scorpp
scorpp / README.md
Created May 30, 2025 16:46
PlantUML rendering GitHub Action

Rendering PlantUML with GitHub Actions

None of existing GitHub Actions is perfect, most are outdated, others use PlantUML Server, which doesn't work well for private repos.

What's included

  • Flow triggers for *.puml file changes only
  • Uses latest PlantUML docker image (but version could be adjusted)
  • Allows you to customise any aspect of rendering by adjusting CLI args
  • Commits rendered images automatically in a separate commit

That's all was made possible by using nice tj-actions/docker-run action.

@scorpp
scorpp / README.md
Last active November 11, 2025 10:05

Mikrotik binary backup to text script without knowing password

Given

A binary backup from Mikrotik, either password-less or your know the password for the backup. You restore the backup to device, but cannot login to webFig/SSH/WinBox/etc.

Essence of the method

  1. Spin RouterOS on a VM (choose Cloud Hosted Router https://mikrotik.com/download), login once, set admin password
  2. Reboot into live Linux ISO, backup users db from Mikrotik /rw/store/user.* into /rw/disk/
  3. Reboot into Mikrotik, restore the backup and reboot. You don't have access to Mikroitk any more.
  4. Reboot into live Linux ISO, copy users db you backed up on step #2
@scorpp
scorpp / README.md
Created January 1, 2026 16:33
Xerox Phaser 3020 on Linux ARM64

Download and extract Linux drivers that Xerox provides https://www.support.xerox.com/en-us/content/129620 The issue is that their driver is for 32-bit ARM (armhf) and is compiled in weird way.

# enable armhf support
sudo apt install libc6:armhf libstdc++6:armhf patchelf
# patch weird elf
patchelf --set-interpreter /lib/ld-linux-armhf.so.3 uld/arm/rastertospl

# install dep

sudo apt install libcups2t64:armhf libcupsimage2t64:armhf libcupsfilters1t64:armhf