This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| if "%1" == "elevated" goto start | |
| powershell -command "Start-Process %~nx0 elevated -Verb runas" | |
| goto :eof | |
| :start | |
| @echo off | |
| cls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| if "%1" == "elevated" goto start | |
| powershell -command "Start-Process %~nx0 elevated -Verb runas" | |
| goto :eof | |
| :start | |
| @echo off | |
| cls | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| if "%1" == "elevated" goto start | |
| powershell -command "Start-Process %~nx0 elevated -Verb runas" | |
| goto :eof | |
| :start | |
| @echo off | |
| cls | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nnoremap <space> <nop> | |
| let mapleader="\<space>" | |
| inoremap jj <esc> | |
| noremap <C-l> [sz= | |
| set number | |
| set cursorline | |
| set showmatch | |
| set hlsearch | |
| set incsearch | |
| set spell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo -e "\e[1;31m" | |
| echo -e " _,edm\$\$\$\$\$on." | |
| echo -e " ,d\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$P." | |
| echo -e " ,g\$\$P\"\" \"\"\"Y\$\$.\"." | |
| echo -e " ,\$\$P' \`\$\$\$." | |
| echo -e " ',\$\$P ,ggs. \`\$\$b:" | |
| echo -e " \`d\$\$' ,\$P\"' . \$\$\$" | |
| echo -e " \$\$P d\$' , \$\$P" | |
| echo -e " \$\$: \$\$. - ,d\$\$'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| REM Remove files older than 14 days | |
| forfiles /p "C:\Users\lmaciak\Downloads" /s /m *.* /c "cmd /c Del @path" /d -14 | |
| forfiles /p "C:\Users\lmaciak\Downloads" /s /d -14 /c "cmd /c if @isdir == TRUE RMDIR /S /Q @path" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| for /f "skip=1" %%a in ( | |
| 'wmic bios get serialnumber' | |
| ) do echo %%a & goto next | |
| :next |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| for /f "delims=[] tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do set NetworkIP=%%a | |
| echo %NetworkIP% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| for /f "tokens=1* delims=: " %%A in ( | |
| 'nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"' | |
| ) Do set ExtIP=%%B | |
| echo %ExtIP% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rem Run CMD.EXE as Admin, then | |
| assoc .py=Python.File | |
| rem Assuming you installed Python via the Microsoft use below | |
| rem If yuou installed Python via an installer, substitute the absolute path to the python executable | |
| ftype Python.File=%LOCALAPPDATA%\Microsoft\WindowsApps\python.exe "%1" %* |