Skip to content

Instantly share code, notes, and snippets.

@zrh535
zrh535 / setupmachine.bat
Last active August 5, 2022 11:21 — forked from shanselman/setupmachine.bat
WinGet Setup a New Machine
mkdir %USERPROFILE%\projects
@REM Visual C++ Redistributables
winget install --id=Microsoft.VC++2005Redist-x64 -e --source winget
winget install --id=Microsoft.VC++2005Redist-x86 -e --source winget
winget install --id=Microsoft.VC++2008Redist-x64 -e --source winget
winget install --id=Microsoft.VC++2008Redist-x86 -e --source winget
winget install --id=Microsoft.VC++2010Redist-x64 -e --source winget
winget install --id=Microsoft.VC++2010Redist-x86 -e --source winget
winget install --id=Microsoft.VC++2012Redist-x64 -e --source winget
winget install --id=Microsoft.VC++2012Redist-x86 -e --source winget
sql() {
# REMOTE source this script
#
# . <(curl -s https://gist.githubusercontent.com/krisrice/fec43fd9f53e4286e5cc360b554e3c0f/raw/62ec382d7511c7cc44703a9a2f75a4a7f233efe2/sqlcl.sh)
# Set the stage directory
STAGE_DIR=/tmp
# Get current ETAG from download
ETAG=`curl -I -s https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip | tr -d '\r' | sed -En 's/^ETag: (.*)/\1/p'`