Nik the plumber

Not a blog about plumbing, or Super Mario, but in fact a series of posts about technology, IT and a few other things.

Friday, 21 February 2020

Git credential helper

›
Cache git credentials in memory for 1 hour git config --global credential.helper 'cache --timeout=3600' this prevents having to re...

Git reset

›
Overwrite local uncommitted changes from origin git fetch origin git reset --hard origin/master ...or on a single line: sudo git fetch ...

VSCode debug configuration for Python Flask /.vscode/launch.json

›
The first section " Python: Flask API " runs the Flask devServer The second section "" runs a simple Python app (in th...
Tuesday, 10 December 2019

Cmder for SSH to server

›
Task parameters /icon %CMDER_ROOT%\icons\cmder_red.ico Commands cmd /c "%ConEmuDir%\..\git-for-windows\usr\bin\ssh yourLogin@192.16...

Git squash

›
Start with git status to check you don't have anything to commit. git reset --soft OLDEST_COMMIT_TO_INCLUDE_IN_SQUASH git commit -m...
Wednesday, 18 September 2019

Fing for Windows

›
Find a device IP on my LAN by mac (DHCP table works too) (.\fing.exe -n 192.168.1.0/24 -r 1) | Select-String -Pattern '\| (.*?)2C:54...
Monday, 16 September 2019

Install Azure Powershell module

›
Investigate if PowerShell is installed Get-Module | ? {$_.Name -match "PowerShell"} Install Azure module (all operating sy...
›
Home
View web version
Powered by Blogger.