Skip to content

Instantly share code, notes, and snippets.

@rnkhouse
rnkhouse / gist:bb6078c468c9b498799bbf632756b5e5
Created April 25, 2024 20:56 — forked from whittlec/gist:6112643
Install plugins to Jenkins via script console
for (plugin in ["ant",
"artifactdeployer",
"build-failure-analyzer",
"build-name-setter",
"build-pipeline-plugin",
"build-timeout",
"claim",
"clone-workspace-scm",
"cobertura",
"collapsing-console-sections",
[
{
"underlying": "AAL",
"underlyingId": 5070993,
"symbol": "AAL19Jun20C10.00",
"symbolId": 29247369,
"bidPrice": 1.31,
"bidSize": 23,
"askPrice": 1.35,
"askSize": 1,
// step 1 install java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo npm install java --save
// step 2 using
var java = require("java");
var jarfile = "jarfileName.jar";
java.classpath.push(jarPath);
# Server requirement: Ubuntu 16.04
# Step 0: VM: NV24 (GPU: 12)
# Step 1: Install cuda installer gist.
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
set -e
purpleColor='\033[0;95m'
normalColor='\033[0m'
USER=$(whoami)
#!/usr/bin/env bash
# IPV6 enable guide for Azure: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-ipv6-for-linux
# Add inbount NAT rules in azure loadbalancer: 1) ssh (22) 2) zen (9033) on ipv4 3) zen (9033) on ipv6
# run below command in root user login (sudo su):
# fallocate -l 4G /swapfile
# chmod 600 /swapfile
# mkswap /swapfile
# swapon /swapfile
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "String",
"metadata": {
"description": "Admin username"
}
},
#!/usr/bin/env bash
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
# (optional): Preparing the environment if you want to install zen from source:
# Once you get the VM up and running you need to login with your root account and run below commands.
# apt-get update && apt-get upgrade -y
# apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake libgtk2.0-dev && apt-get autoremove -y
# Server requirement: Ubuntu 16.04
# mount aion to separate storage:
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
set -e
purpleColor='\033[0;95m'
normalColor='\033[0m'
# Server requirement: Ubuntu 16.04
# mount aion to separate storage:
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
set -e
purpleColor='\033[0;95m'
normalColor='\033[0m'
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)"
set -e
purpleColor='\033[0;95m'
normalColor='\033[0m'
USER=$(whoami)
# Dependencies:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -