Skip to content

Instantly share code, notes, and snippets.

View mon-jai's full-sized avatar

Mon mon-jai

  • National Taipei University of Technology
  • Taiwan
  • 20:00 (UTC +08:00)
View GitHub Profile
# https://superuser.com/a/1492456
echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" | sudo dd of="/etc/sudoers.d/$(whoami)"
sudo apt install -y wslu
# https://superuser.com/a/1568668/1172895
WINDOWS_USER_PROFILE="$(wslpath "$(wslvar USERPROFILE)")"
HOME_DICECTORY="/home/$(whoami)"
# https://askubuntu.com/a/86891
cp -vra ~/. $WINDOWS_USER_PROFILE