Skip to content

Instantly share code, notes, and snippets.

Avatar
🎧
-> The Band Red

Colten Krauter coltenkrauter

🎧
-> The Band Red
View GitHub Profile
@coltenkrauter
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 https://github.com/coltenkrauter?tab=repositories"
alias downloads="echo /mnt/c/Users/Colten/Downloads/"
alias clo="git clone"
@coltenkrauter
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: https://blog.creekorful.com/2020/01/how-to-expose-traefik-2-dashboard-securely-docker-swarm/
version: '3'
services:
reverse-proxy:
image: traefik:2.3
command:
# - '--log.level=DEBUG'
- '--api=true'
- '--api.dashboard=true'
@coltenkrauter
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
secondary.