- WSL
- Windows Terminal
- https://github.com/ohmyzsh/ohmyzsh
- https://github.com/romkatv/powerlevel10k
- internet
sudo nano /etc/resolv.conf
nameserver 9.9.9.11 # quad9 nameserver x.x.x.x # other
sudo nano /etc/wsl.conf
[network] generateResolvConf = false
- Set the systemd flag set in your WSL distro settings - https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/#set-the-systemd-flag-set-in-your-wsl-distro-settings
sudo nano /etc/wsl.conf
[boot] systemd=true
-
dotnet
- https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#register-the-microsoft-package-repository
- https://learn.microsoft.com/en-us/dotnet/core/install/linux-package-mixup?pivots=os-linux-ubuntu#i-need-a-version-of-net-that-isnt-provided-by-my-linux-distribution
- https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-install?tabs=dotnet8&pivots=os-linux-ubuntu-2204#install-the-sdk
-
nano ~/.zshrc
# Start Docker daemon automatically when logging in if not running. RUNNING=`ps aux | grep dockerd | grep -v grep` if [ -z "$RUNNING" ]; then sudo dockerd > /dev/null 2>&1 & disown fi
-
docker run -d -p 7000:8000 --restart unless-stopped -e DISABLE_AUTH=True -e SECRET_KEY=some_key -v /var/run/docker.sock:/var/run/docker.sock -v yacht:/config --name yacht selfhostedpro/yacht
- http://localhost:7000/#/apps
-
MS SQL
- run
docker run -d --name mssql --hostname mssql \ -e "ACCEPT_EULA=Y" \ -e "MSSQL_SA_PASSWORD=SomeStrongPwd123" \ -p 1433:1433 \ -v $(pwd)/sqlserver/data:/var/opt/mssql/data \ -v $(pwd)/sqlserver/log:/var/opt/mssql/log \ -v $(pwd)/sqlserver/secrets:/var/opt/mssql/secrets \ -d mcr.microsoft.com/mssql/server:2019-latest
- connect
- server: [::1]
- login: sa
- password: SomeStrongPwd123
- Restore backup - https://learn.microsoft.com/en-us/sql/linux/tutorial-restore-backup-in-sql-server-container?view=sql-server-ver16
docker exec -it mssql mkdir /var/opt/mssql/backup
docker cp your.bak mssql:/var/opt/mssql/backup
- FullTextSearch - https://github.com/microsoft/mssql-docker/blob/master/linux/preview/examples/mssql-agent-fts-ha-tools/Dockerfile
docker build -t mssql-fts .
-e "MSSQL_AGENT_ENABLED=true"