Skip to content

Instantly share code, notes, and snippets.

@agyemanjp
Last active March 22, 2019 14:07
Show Gist options
  • Save agyemanjp/4068fa5f2bf4cf6777c6b65be50ff133 to your computer and use it in GitHub Desktop.
Save agyemanjp/4068fa5f2bf4cf6777c6b65be50ff133 to your computer and use it in GitHub Desktop.
REM Install useful packages
echo( & echo Installing chocolatey ...
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
refreshenv
echo( & echo Installing wget ...
choco install wget -y
refreshenv
echo( & echo Installing git ...
choco install git -y
refreshenv
git --version
REM Install nodejs
echo( & echo Installing nodejs ...
choco install nodejs --version 10.15.3 -y
refreshenv
node -v
npm -v
REM Install R
echo( & echo Installing R ...
choco install r --version 3.4.4 -y
REM doskey R="C:\Program Files\R\R-3.4.4\bin\R.exe"
REM doskey r="C:\Program Files\R\R-3.4.4\bin\R.exe"
refreshenv
R --version
echo( & echo Installing 'devtools' R package...
wget https://cran.r-project.org/src/contrib/devtools_2.0.1.tar.gz
R CMD INSTALL devtools_2.0.1.tar.gz
del devtools_2.0.1.tar.gz
REM Install Postgres
echo( & echo Installing Postgres ...
choco install postgresql
psql --version
REM Clone and install repository
echo( & echo Cloning hypothesize repository ...
set /p folder="\nPlease enter path of parent folder to clone into:"
if exist %folder% mkdir -p %folder%
cd %folder%
git clone https://github.com/Hypothesize/hypothesize.git hypothesize
cd hypothesize && git checkout dev
echo( & echo Instaling hypothesize npm dependencies ...
npm install
C:\Program Files (x86)\Parallels\Parallels Tools\Applications;
C:\Windows\system32;
C:\Windows;
C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Windows\System32\OpenSSH\;
C:\Program Files\dotnet\;
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;
C:\Program Files\PostgreSQL\10\bin\;
C:\ProgramData\chocolatey\bin;
C:\Program Files\Git\cmd;
C:\Program Files\nodejs\;
C:\Users\Prmph\.windows-build-tools\python27\;
C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;
C:\Users\Prmph\AppData\Roaming\npm\node_modules\windows-build-to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment