- Launch Windows Server 2016 Core
- Install docker
This file contains hidden or 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
| #!/bin/bash | |
| bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --dont-wait | |
| apt-get update | |
| apt-get install -y vim lsof default-jdk screen | |
| [[ -d "/opt/minecraft" ]] || mkdir -p /opt/minecraft | |
| wget -O /opt/minecraft/minecraft_server.jar "https://s3.amazonaws.com/Minecraft.Download/versions/1.12.1/minecraft_server.1.12.1.jar" |
This file contains hidden or 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
| #!/bin/bash | |
| sudo -s | |
| apt-get clean | |
| apt-get update | |
| apt-get install openssh-server -y | |
| passwd kubuntu | |
| # enter password: AllVideo123! -- it will ask you to enter it twice. |
This file contains hidden or 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
| #!/bin/bash | |
| PROJECT="win-lust" | |
| ZONE="us-east1-b" | |
| gcloud compute --project $PROJECT instances create --zone $ZONE --machine-type "n1-standard-1" --subnet "winlust" --metadata-from-file="startup-script=master_startup.sh" --maintenance-policy "MIGRATE" --image "ubuntu-1604-xenial-v20170125" --image-project "ubuntu-os-cloud" --no-scopes $(seq -s ' ' -f "saltmaster%03g" 3) | |
| gcloud compute --project $PROJECT instances create --zone $ZONE --machine-type "f1-micro" --subnet "winlust" --metadata-from-file="startup-script=minion_startup.sh" --maintenance-policy "MIGRATE" --image "ubuntu-1604-xenial-v20170125" --image-project "ubuntu-os-cloud" --no-scopes $(seq -s ' ' -f "saltminion%03g" 20) |
This file contains hidden or 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
| https://rubygems.org/downloads/vagrant-berkshelf-4.1.0.gem | |
| https://rubygems.org/downloads/vagrant-aws-0.6.0.gem | |
| https://rubygems.org/downloads/vagrant-omnibus-1.4.1.gem | |
| http://cloud.ja.sonbarnett.com/2P3m4545222l | |
| http://cloud.ja.sonbarnett.com/1E3K39143h0j |
This file contains hidden or 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
| package hello | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "github.com/gorilla/mux" | |
| ) | |
| func init() { |
This file contains hidden or 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
| def mad_based_outlier(points, thresh=3.5): | |
| if len(points.shape) == 1: | |
| points = points[:,None] | |
| median = np.median(points, axis=0) | |
| diff = np.sum((points - median)**2, axis=-1) | |
| diff = np.sqrt(diff) | |
| med_abs_deviation = np.median(diff) | |
| modified_z_score = 0.6745 * diff / med_abs_deviation |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |