git config --global alias.up 'pull --rebase --autostash'
alias docker-container-clear='docker rm -f $(docker ps -a -q)'
alias docker-image-clear='docker image remove -f $(docker images -a -q)'
alias docker-clear='docker system prune'
Windows/powershell (please use the modern variant: https://github.com/PowerShell/PowerShell) cannot create aliases for commands with arguments. To work-around this issue the best approach is to create a function for the command and alias the function.
I've created a new wsl instance by following this guideline: https://cloudbytes.dev/snippets/how-to-install-multiple-instances-of-ubuntu-in-wsl2
- Download wsl image: https://cloud-images.ubuntu.com/releases/21.10/release/
- Import to wsl
wsl --import <Distribution Name> <Installation Folder> <Ubuntu WSL2 Image Tarball path>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" -------------------------------------------------------------------------- | |
"" settings and intro to turn vim into a golang IDE | |
"" https://octetz.com/posts/vim-as-go-ide | |
"" -------------------------------------------------------------------------- | |
call plug#begin('~/.vim/plugged') | |
" < Other Plugins, if they exist > | |
Plug 'NLKNguyen/papercolor-theme' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true, | |
"suppressWelcomeNotice": true | |
}, | |
"gitlens.keymap": "alternate", | |
"editor.fontFamily": "'Cascadia Code', 'Input Mono','Fira Code','DejaVu Sans Mono','Inconsolata Medium'", | |
"editor.fontLigatures": true, | |
"editor.codeActionsOnSave": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to find out which attributes exist for C# debugging | |
// Use hover for the description of the existing attributes | |
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Attach to C# Functions", | |
"type": "coreclr", | |
"request": "attach", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.iconTheme": "eq-material-theme-icons-palenight", | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true, | |
"suppressWelcomeNotice": true | |
}, | |
"editor.fontSize": 12, | |
"editor.fontFamily": "'Fira Code','Hack','DejaVu Sans Mono','Inconsolata Medium'", | |
"editor.fontLigatures": true, | |
"vsicons.projectDetection.disableDetect": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app = Get-WmiObject -Class Win32_Product | Where-Object { | |
$_.Name -match "Microsoft .NET Core SDK" | |
} | |
Write-Host $app.Name | |
Write-Host $app.IdentifyingNumber | |
pushd $env:SYSTEMROOT\System32 | |
$app.identifyingnumber |% { Start-Process msiexec -wait -ArgumentList "/x $_" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"command": " ", | |
"args": [], | |
"tasks": [ | |
{ | |
"group": "build", | |
"type": "process", | |
"label": "BUILD: build", | |
"command": "dotnet", |