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 | |
SETLOCAL | |
SET /P PROJECT=Enter project name (e.g. puppet): | |
SET /P PRNUM=Enter PR number (e.g. 12345): | |
SET REPO=%~dp0%PROJECT%-pr%PRNUM% | |
ECHO Cleaning... |
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
# Powershell specific argument passing | |
# You must be on the latest beta of chocolatey for this to work properly (redownload files) | |
# Based on https://gist.github.com/ferventcoder/947479688d930e28d632 | |
#TODO | |
#uru 1.9.3 | |
#gem sources -a http://rubygems.org | |
#gem sources -r https://rubygems.org | |
#gem update --system | |
#gem sources -r http://rubygems.org |
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 | |
SETLOCAL | |
SET COMP=<poolername>.delivery.puppetlabs.net | |
SET UNAME=administrator | |
SET PWD=<password> | |
NET USE \\%COMP%\c$ /user:%UNAME% %PWD% |
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 | |
ECHO Installing chocolatey... | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
ECHO Refreshing env... | |
CALL "C:\ProgramData\chocolatey\bin\RefreshEnv.cmd" | |
ECHO Installing Chrome and VC Redist 2010... | |
choco install googlechrome vcredist2010 -y |
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
$ErrorActionPreference = 'Stop' | |
$VerbosePreference = 'SilentlyContinue' | |
Function Safe-CypherString($value) { | |
$value = $value.Replace('\','\\').Replace("`n",'\n').Replace("`r",'\r').Replace("'","\'") | |
Write-Output $value | |
} | |
Function Convert-JSONToCypher($dataObject) { |
NewerOlder