Skip to content

Instantly share code, notes, and snippets.

@totekuh
totekuh / messagebox-x64.asm
Last active September 27, 2025 17:46
Assembly (ASM) source to invoke a message box on Windows x64
BITS 64
; Assembly with NASM for 64-bit
; nasm -f win64 -o messagebox.o messagebox.asm
; Linking for 64-bit with MinGW
; x86_64-w64-mingw32-ld -o messagebox.exe messagebox.o -lkernel32 -luser32
extern MessageBoxA
extern ExitProcess
@4lxprime
4lxprime / github-desktop-ubutnu.sh
Last active July 29, 2025 20:50
download github desktop on ubuntu
### How to install github desktop on ubuntu:
## download .deb file:
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb
## gdebi:
# sudo apt install gdebi-core -y
# sudo gdebi GitHubDesktop-linux-3.2.0-linux1.deb
## dpkg:
sudo dpkg -i GitHubDesktop-linux-3.2.0-linux1.deb
资料:
lxc:
https://github.com/clondroid
lxc-android https://github.com/ppoffice/lxc-android
https://github.com/hybris-mobian/lxc-android
区别在Android上运行lxc 和 利用lxc运行Android
anbox:
!!!!!!!!!!!!!!!!
@gokart23
gokart23 / run-arm-chroot-on-x86.md
Last active May 14, 2025 23:04
Run ARM chroot on x86 machine (both ArchLinux)

Steps

  1. Install qemu-user-static (yay -S qemu-user-static).
    • This might need you to install pcre-static and update PGP keys (follow the tips in the comments here).
  2. If not already present, install systemd-binfmt, the revamped version of binfmt-support tools
    • Your system has to support transparent Qemu user emulation, but fortunately, that is mostly enabled once the steps here have been followed.
  3. Check the status of the systemd-binfmt unit (systemctl status systemd-binfmt) and (re)start if needed (sudo systemctl restart systemd-binfmt)
    • This unit has ARM support by default, but check the current documentation to make install it if needed
  4. Mount the root partition of the ARM system into a folder (for e.g., sudo mount /dev/sdb2 arm_mountpoint)
  5. Copy the QEMU ARM static binary (/usr/bin/qemu-arm-static on my distro) to the mounted root directory's usr/bin