Feb 22nd, 2022
- Operating system: Ubuntu 20.04 x84_64 (64-bit)
- Architecture: amd64
- GPU: NVIDIA GeForce RTX 3090
- Python 3.8
This is a brief guide on how to install Archlinux as a WSL2 distribution and how to set up CUDA afterwards.
As of late, Window's WSL2 offers GPU passthrough from WSL2/Linux to Windows for NVidia graphics cards which allows to run (and develop) CUDA-based applications on the WSL2/Linux-side with almost native performance. Unfortunately, the official guides for the CUDA setup for WSL2/Linux are predominantly Ubuntu-specific. Here's to you, Arch!
Archlinux is not among the default distributions available for WSL2. We'll install it from a tarball instead, a functionality offered natively by the WSL.
/* | |
* This document is provided to the public domain under the | |
* terms of the WTFPL license. | |
*/ | |
This is | |
This is a combination of | |
- [How to boot Arch Linux ARM in QEMU (patched for M1)](https://gist.github.com/thalamus/561d028ff5b66310fac1224f3d023c12) - thanks to Avatar | |
Will Tisdale |
const std = @import("std"); | |
const expect = std.testing.expect; | |
fn Functor( | |
comptime F: fn (comptime type) type, | |
) type { | |
return struct { | |
fmap: fmap_type, | |
const Self = @This(); |
Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland
Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.
In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland
, for example you'll be launching VSCode like
$ code --enable-features=UseOzonePlatform --ozone-platform=wayland
This fix can be made permanent by creating a .desktop
file or by directly editing /usr/share/applications/visual-studio-code.desktop
for Dynamic Penetration System v1_21 (Gumroad)
I noticed some things aren't super clear for the Dynamic Penetration System, there is a lack of documentation to some extent.
This Guide does not describe how to set up penetrators using the provided script, but rather aids people in the manual process. Instructions for the Script may come at a later point.
Light Ranges correspond to channels.
let's say you have a C++ project in Nix that you want to work on with CLion so that the nix dependencies are available.
.nix
utility directory in your project directory.nix-run.sh
and nix-cmake.sh
in the .nix
directory..nix
directory create symlinks for make
, gcc
, g++
- and maybe more tools, that need to have the nix dependencies and build tools available - and point them to nix-run.sh
nix-cmake.sh
and point all other build tools to the symlinks you've created.git config filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'
Create a .gitattributes
file inside the directory with the notebooks
Add the following to that file:
#!/bin/sh | |
# an unsuitable quick solution | |
# added it to crontab -e | |
ps -aux | grep -v grep | grep -E "kdevtmpfsi|kinsing" | awk '{print $2}' | while read line ; do kill -9 $line ; done && rm -rf /tmp/kdevtmpfsi* && rm -rf /tmp/kinsing* | |
echo "$(date) removing..." |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)