Skip to content

Instantly share code, notes, and snippets.

View darianmiller's full-sized avatar

Darian Miller darianmiller

View GitHub Profile
:: Source
:: Batch file example from May 2023 blog post: https://www.ideasawakened.com/post/prevent-concurrent-execution-batch-file-implementation-how-to
@echo off
::
:: Note - this extra call is to avoid a bug with %~f0 when the script
:: is executed with quotes around the script name.
::
:: %1 %2 %3 are example command-line parameters, include as desired
::
@darianmiller
darianmiller / SetupSignedCommits.bat
Last active January 19, 2022 16:54
Setup code signing git commits on Windows using GPG
echo Use GnuPG on Windows for Code Signing git commits
@echo off
SETLOCAL
rem useful if running batch file from Explorer with hard-coded passphrase
rem cd /d %~dp0
cls
echo SetupSignedCommits.bat
echo https://gist.github.com/darianmiller/9de8aeb1979ef2eba9ea6069c669bca1
echo Created December 5, 2021