Skip to content

Instantly share code, notes, and snippets.

View bburns's full-sized avatar
:electron:

Brian Burns bburns

:electron:
View GitHub Profile
@bburns
bburns / setr.bat
Last active December 6, 2015 13:53
Set an environment variable value in the current environment *and* the Windows registry.
:: setr
:: Set an environment variable in the current session and the registry.
:: https://gist.github.com/bburns/d1572eee7be76b1dd5e3#file-setr-bat
:: --------------------------------------------------------------------------------
:: Set, delete, or show value of an environment variable in the local
:: environment *and* the user registry.
:: Combines set, setx, and reg commands.
@bburns
bburns / giti.bat
Last active December 6, 2015 14:14
View and modify the .gitignore file on Windows
:: giti
:: view and modify .gitignore file
:: --------------------------------------------------------------------------------
@echo off
rem -h option: show help
if "%1" == "-h" (
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.