This file contains 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) { |
This file contains 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 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 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 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 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
bundle exec msync update -f "acl|powershell|reboot|registry|sqlserver|wsus_client" -n glennsarti -b stable -m "(maint) modulesync 724153ca2" -r ticket/stable/PUP6473 | |
bundle exec msync update -f “choco|dism|dsc” -n glennsarti -b master -m "(maint) modulesync 724153ca2" -r ticket/master/PUP6473 |
This file contains 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
sudo apt-get install -y build-essential git libreadline-dev | |
sudo apt-get install -y libssl-dev zlib1g-dev | |
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
sudo apt-get install -y ruby1.9.1-dev zlib1g-dev | |
sudo apt-get install -y autoconf | |
sudo apt-get install -y libicu-dev |
This file contains 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
source ENV['GEM_SOURCE'] || "https://rubygems.org" | |
# Determines what type of gem is requested based on place_or_version. | |
def gem_type(place_or_version) | |
if place_or_version =~ /^git:/ | |
:git | |
elsif place_or_version =~ /^file:/ | |
:file | |
else | |
:gem |
This file contains 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 | |
choco install 7zip -y | |
ECHO Cleaning... | |
RD "%~dp0pkg" /s/q | |
ECHO Building the puppet module... |
This file contains 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
# Install python packages | |
sudo apt-get install python python-pip python-virtualenv | |
# Install python dev packages | |
sudo apt-get install python-dev libxml2-dev libxslt-dev |
OlderNewer