Skip to content

Instantly share code, notes, and snippets.

View BenjaVR's full-sized avatar
🐈

Benjamin Van Renterghem BenjaVR

🐈
View GitHub Profile
@BenjaVR
BenjaVR / remove-all-from-docker.sh
Created January 28, 2024 22:16 — forked from beeman/remove-all-from-docker.sh
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@BenjaVR
BenjaVR / README.md
Created May 28, 2021 08:35
Git ignore versioned files

The goal of this is to ignore files that are checked in, but should never change (although you have some changes locally), or files/folders you want to ignore locally but should not be included in .gitignore for everyone.

Ignore file(s): git update-index --assume-unchanged <file/folder>

Check all ignored files: git ls-files -v | findstr '^h'

Undo ignore file(s): git update-index --no-assume-unchanged

@BenjaVR
BenjaVR / ContextMenu.bat
Last active May 6, 2021 00:36
Jetbrains LightEdit shortcut Windows
reg.exe add HKCR\*\shell\LightEdit\command /t REG_EXPAND_SZ /d "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Jetbrains Toolbox\LightEdit.bat %V"
reg.exe add HKCR\*\shell\LightEdit /v Icon /t REG_EXPAND_SZ /d "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Jetbrains Toolbox\LightEdit.ico"
# crosshair: CSGO-aFuAc-LzfZO-xPoob-mCawB-JTVGQ
unbindallmousekeyboard
bind "ESCAPE" "cancelselect"
bind "/" "toggleconsole"
bind "TAB" "+showscores"
bind "I" "+showscores"
bind "SPACE" "+jump"
bind "MWHEELUP" "+jump"
bcdedit /set hypervisorlaunchtype off
@BenjaVR
BenjaVR / changes.txt
Last active December 28, 2020 18:51
JetBrains Material UI theme changes
- Editor > Color Scheme > General
-> Editor > Tabs > Selected Tab inactive
-> "Foreground" unchecked
- Editor > Color Scheme > General
-> Editor > Selection foreground
-> "Foreground" unchecked
- Editor > Color Scheme > General
-> Errors and Warnings > Unused symbol
@BenjaVR
BenjaVR / stop_all_containers.ps1
Created October 13, 2019 11:55
Docker commands
docker ps -q | % { docker stop $_ }
@BenjaVR
BenjaVR / shutdown_pc.bat
Created July 7, 2019 09:45
Shutdown pc with timer
@echo off
set /P seconds="Timeout seconds: "
timeout /t %seconds% -nobreak
shutdown /s /f /t 00
@BenjaVR
BenjaVR / Jetbrains_shell_path.txt
Last active June 20, 2019 17:36
Powershell config
"pwsh" -NoLogo -NoProfile
@BenjaVR
BenjaVR / RefreshChromeAppIcons.ps1
Last active November 4, 2018 17:40
Chrome app icon fix in start menu W10
Write-Output 'Requesting admin access to remove chrome.VisualElementsManifest.xml...'
$code = { Remove-Item 'C:\Program Files (x86)\Google\Chrome\Application\chrome.VisualElementsManifest.xml' -ErrorAction Ignore }
Start-Process -FilePath powershell.exe -ArgumentList $code -Verb RunAs -WorkingDirectory C:
$chromeAppFileList = ls '~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome-apps'
foreach ($file in $chromeAppFileList) {
Write-Output "Updating icon of $file..."
$file.LastWriteTime = Get-Date
}