Skip to content

Instantly share code, notes, and snippets.

@rsletta
rsletta / settings.json
Created April 3, 2022 12:33
Windows Terminal Nord & Gruvbox color schemes
[
{
"background": "#2E3440",
"black": "#3B4252",
"blue": "#81A1C1",
"brightBlack": "#4C566A",
"brightBlue": "#81A1C1",
"brightCyan": "#8FBCBB",
"brightGreen": "#A3BE8C",
"brightPurple": "#B48EAD",
@rsletta
rsletta / wsl-integration.sh
Created December 9, 2019 09:03
wsl-integration.sh after edit
if type pactl > /dev/null 2>&1 || type xvinfo > /dev/null 2>&1; then
# detect WSL host
if type systemd-detect-virt > /dev/null 2>&1 && test "$(systemd-detect-virt -c)" != wsl -a -e /etc/resolv.conf; then
WSL_HOST=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null)
fi
WSL_HOST=${WSL_HOST:-localhost}
# set DISPLAY if there is an X11 server running
#if type xvinfo > /dev/null 2>&1 && env DISPLAY=${WSL_HOST}:0 xvinfo > /dev/null 2>&1; then
# export DISPLAY=${WSL_HOST}:0
@rsletta
rsletta / after_nodejs_bootstrap.log
Created December 8, 2019 23:58
DMESG logs from WSL2 setup Ubuntu, from snappy to Sluggishville
[ 0.000000] Linux version 4.19.84-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Nov 13 11:44:37 UTC 2019
[ 0.000000] Command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=8
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256