Skip to content

Instantly share code, notes, and snippets.

@ThYpHo0n
ThYpHo0n / .zshrc
Last active April 11, 2024 19:00
WSL(2) bash profile helpers
# WSL?
if [[ "$(< /proc/sys/kernel/osrelease)" == *microsoft* ]]; then
export $(dbus-launch)
export LIBGL_ALWAYS_INDIRECT=1
export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g')
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2)
export DISPLAY=$WSL_HOST:0
# pip path if using --user
export PATH=$PATH:$HOME/.local/bin
# SSH
@sb3tcs
sb3tcs / README.md
Last active June 12, 2023 23:33
Linux on Thinkpad T480

sudo fix

sudo visudo

bo ALL=(ALL) NOPASSWD: ALL

golang

@kazuhisya
kazuhisya / Dockerfile
Last active February 8, 2019 23:38
boostnote rpm test build env.
# vi: set ft=dockerfile :
FROM docker.io/ubuntu:16.04
MAINTAINER Kazuhisa Hara <kazuhisya@gmail.com>
ENV TZ="JST-9" \
DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get install -y curl --no-install-recommends