Skip to content

Instantly share code, notes, and snippets.

View bihe's full-sized avatar
💭
💻

Henrik Binggl bihe

💭
💻
View GitHub Profile
@bihe
bihe / docker.commands.md
Created January 1, 2025 15:44
Docker helper functions / aliases

Helpful docker commands which should be aliased to save some keystrokes

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.

@bihe
bihe / wsl_docker_install.md
Created January 19, 2022 15:02
Install docker natively in wsl2
@bihe
bihe / init.vim
Created November 17, 2019 11:05
neovim config for golang
"" --------------------------------------------------------------------------
"" 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'
@bihe
bihe / settings.json
Created November 6, 2019 17:42
VSCode Settings
{
"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": {
@bihe
bihe / launch.json
Created October 6, 2018 11:28
VSCode settings to debug AzureFunction
{
// 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",
@bihe
bihe / settings.json
Created October 4, 2018 18:10
vscode settings
{
"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,
@bihe
bihe / RemoveCoreSDKs.ps1
Created September 30, 2018 12:27
Save the script of shanselman as a gist.
$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 $_" }
@bihe
bihe / tasks.json
Created June 29, 2018 14:32
vscode tasks.json -- dotnet.core
{
"version": "2.0.0",
"command": " ",
"args": [],
"tasks": [
{
"group": "build",
"type": "process",
"label": "BUILD: build",
"command": "dotnet",