2048 shaares
6 private links
6 private links
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
Too remove a permission one can do:
flatpak run --unshare=network org.something.App