Skip to content

Instantly share code, notes, and snippets.

@diyism
diyism / waydroid on debian x64 and armbian focal pine64.txt
Last active June 8, 2024 22:08
waydroid on debian x64 and armbian focal pine64
============================x64 debian=====================================
#redroid is easier than waydroid: https://github.com/remote-android/redroid-doc/issues/407
#https://hub.docker.com/r/teddynight/redroid
#adb connect localhost #20 seconds after docker run
#scrcpy -s localhost --audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
#it seems only one redroid container can run correctly, so first "sudo docker stop <redroid 14 container>" then "sudo docker run <teddynight 11 container>"
#or else the adb/scrcpy won't connect it, even if the 2 containers listen on 2 differenct ports(one 5555, another 5556)
# upgrade kali linux kernel from 5.7 to 5.9+(download from: http://old.kali.org/kali/pool/main/l/linux/)
# sudo apt install linux-image-6.3.0-kali1-amd64
@yujincheng08
yujincheng08 / enc_str.cc
Last active October 17, 2023 13:58
Compile time encrypt string
#include "enc_str.h"
#include <cstdio>
static_assert(next_prime<next_prime<4>> == next_prime<4> && next_prime<4> == 5, "??");
static constexpr auto j = "I love vvb2060 and she's my wife."_senc;
static constexpr auto k = ".."_senc;
static constexpr auto l = j + k;
int main() {
@n4sm
n4sm / auto_unpacker.py
Last active March 20, 2023 08:54
Juste a simple auto unpacker for elf binaries which is using qiling: https://kernemporium.github.io/articles/en/auto_unpacking/m.html
#!/usr/bin/python3
# /*
# * ----------------------------------------------------------------------------
# * "THE BEER-WARE LICENSE" (Revision 42):
# * n4sm wrote this file. As long as you retain this notice you
# * can do whatever you want with this stuff. If we meet some day, and you think
# * this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp
# * ----------------------------------------------------------------------------
# * /