Skip to content

Instantly share code, notes, and snippets.

View cesmaio's full-sized avatar
🌊

Cesare Maio cesmaio

🌊
  • Copenhangen, Denmark
  • 08:51 (UTC +02:00)
View GitHub Profile
@cesmaio
cesmaio / .bash_aliases
Last active August 6, 2024 09:23
custom bash profile for Ubuntu/WSL(Ubuntu)/MacOS
# set DISPLAY for Xserver (XLaunch)
export DISPLAY=$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}'):0.0 # IPv4_Address_OF_WSL
export LIBGL_ALWAYS_INDIRECT=1
# Launch Xserver with WSL2 configuration (^C to exit after launch)
alias xlaunch="/mnt/c/Program\ Files/VcXsrv/vcxsrv.exe :0 -multiwindow -clipboard -wgl -ac"
alias lsof-port="sudo lsof -i -P -n | grep $1"
## Network Simulator