Skip to content

Instantly share code, notes, and snippets.

View SpotLabsNET's full-sized avatar

CodeMaster SpotLabsNET

View GitHub Profile
{
"swagger": "2.0",
"info": {
"contact": {
"email": "contact@paraswap.io"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
@SpotLabsNET
SpotLabsNET / ParaswapV5-O3.json
Created June 2, 2022 08:25
Swagger v3 for Paraswap API v5
{
"openapi" : "3.0.3",
"info" : {
"title" : "ParaSwap API v5",
"contact" : {
"email" : "contact@paraswap.io"
},
"license" : {
"name" : "Apache 2.0",
"url" : "http://www.apache.org/licenses/LICENSE-2.0.html"
# The DSC configuration that will generate metaconfigurations
[DscLocalConfigurationManager()]
Configuration MinerConfigMeta
{
param
(
[Parameter(Mandatory=$True)]
[String]$RegistrationUrl,
[Parameter(Mandatory=$True)]
function GetPoolLocation()
{
if("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('au'))
{
return 'asia'
}
elseif("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('ca'))
{
return 'us'
@SpotLabsNET
SpotLabsNET / Startup_F8.ps1
Last active April 10, 2018 00:23
Startup script for F8.
function GetPoolLocation()
{
if("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('au'))
{
return 'asia'
}
elseif("$Env:AZ_BATCH_ACCOUNT_NAME".Contains('ca'))
{
return 'us'
#!/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
#!/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
#!/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
#!/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