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
{ | |
"swagger": "2.0", | |
"info": { | |
"contact": { | |
"email": "[email protected]" | |
}, | |
"license": { | |
"name": "Apache 2.0", | |
"url": "http://www.apache.org/licenses/LICENSE-2.0.html" | |
}, |
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
{ | |
"openapi" : "3.0.3", | |
"info" : { | |
"title" : "ParaSwap API v5", | |
"contact" : { | |
"email" : "[email protected]" | |
}, | |
"license" : { | |
"name" : "Apache 2.0", | |
"url" : "http://www.apache.org/licenses/LICENSE-2.0.html" |
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
# The DSC configuration that will generate metaconfigurations | |
[DscLocalConfigurationManager()] | |
Configuration MinerConfigMeta | |
{ | |
param | |
( | |
[Parameter(Mandatory=$True)] | |
[String]$RegistrationUrl, | |
[Parameter(Mandatory=$True)] |
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
function GetPoolLocation() | |
{ | |
if("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('au')) | |
{ | |
return 'asia' | |
} | |
elseif("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('ca')) | |
{ | |
return 'us' |
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
function GetPoolLocation() | |
{ | |
if("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('au')) | |
{ | |
return 'asia' | |
} | |
elseif("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('ca')) | |
{ | |
return 'us' |
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
#!/usr/bin/env bash | |
# stage cuda | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository -y ppa:ethereum/ethereum | |
sudo apt-get update |
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
#!/usr/bin/env bash | |
# kill the x server | |
sudo systemctl stop lightdm.service | |
# install the drivers | |
wget -O NVIDIA-Linux-x86_64-367.106-grid.run https://go.microsoft.com/fwlink/?linkid=849941 | |
chmod +x NVIDIA-Linux-x86_64-367.106-grid.run | |
sudo ./NVIDIA-Linux-x86_64-367.106-grid.run -a --update --dkms -X -Z -s |
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
#!/usr/bin/env bash | |
# install powershell | |
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list | |
sudo apt-get update | |
sudo apt-get install -y powershell | |
# patch the system | |
sudo apt-get upgrade -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
#!/usr/bin/env bash | |
# large pages | |
sudo sysctl -w vm.nr_hugepages=128 | |
# install powershell | |
sudo curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/16.04/prod.list | |
sudo apt-get update | |
sudo apt-get install -y powershell |