2250 shaares
7 private links
7 private links
procdump()
(
cat /proc/$1/maps | grep -Fv ".so" | grep " 0 " | awk '{print $1}' | ( IFS="-"
while read a b; do
dd if=/proc/$1/mem bs=$( getconf PAGESIZE ) iflag=skip_bytes,count_bytes \
skip=$(( 0x$a )) count=$(( 0x$b - 0x$a )) of="$1mem$a.bin"
done )
)
Gc like langage with rust
fn get_size(a: HeavyThing) -> usize {
let size = a.size();
std::thread::spawn(move || drop(a));
size
}Select and tool using machine learning
How to select multiple async stream in rust (search Basic stream selecting.)
Passthrough gpu with kvm
git clone --recursive https://github.com/flathub/com.stepmania.StepMania /tmp/com.stepmania.StepMania
docker run -ti --privileged --name=buildflatpackstepmania -v /tmp/com.stepmania.StepMania:/flat ubuntu:18.04
cd /flat/
apt-get update && apt-get install -y git build-essential flatpak-builder ostree fuse elfutils ca-certificates --no-install-recommends
mkdir /build
cd /build
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gnome.Sdk//3.36
flatpak install flathub org.gnome.Platform//3.36
export FLATPAK_GL_DRIVERS=dummy
flatpak-builder --force-clean --disable-rofiles-fuse /build com.stepmania.StepMania.json