Skip to content

Instantly share code, notes, and snippets.

-> The Band Red

Colten Krauter coltenkrauter

-> The Band Red
View GitHub Profile
coltenkrauter / .profile
Last active Mar 2, 2021
WSL2 .profile
View .profile
# ~/.profile
cd ~/Repositories
# Useful aliases
alias subl="/mnt/c/Program\ Files/Sublime\ Text\ 3/subl.exe"
alias chrome="/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe"
alias github="chrome"
alias downloads="echo /mnt/c/Users/Colten/Downloads/"
alias clo="git clone"
coltenkrauter / docker-compose.yaml
Last active Oct 21, 2021
Traefik V2 Docker Compose file with LetsEncrypt and HTTPS redirect - Traefik dashboard and simple whoami service
View docker-compose.yaml
# Tutorial:
version: '3'
image: traefik:2.3
# - '--log.level=DEBUG'
- '--api=true'
- '--api.dashboard=true'
coltenkrauter / fix-wsl2-dns-resolution
Last active Oct 22, 2021
Fix DNS resolution in WSL2
View fix-wsl2-dns-resolution
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and