Skip to content

Instantly share code, notes, and snippets.

View Rory-Z's full-sized avatar

Rory Rory-Z

  • EMQ Technologies Co., Ltd
  • 杭州, 浙江, 中国
View GitHub Profile
@Rory-Z
Rory-Z / emqx-learning-cluster-Vagrantfile
Created December 6, 2018 01:57
emqx-learning-cluster-Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
(1..3).each do |i|
config.vm.define "node#{i}" do | node |
node.vm.hostname = "node#{i}"
node.vm.network "private_network", ip: "192.168.233.11#{i}"
end
end
config.vm.provision "shell", inline: <<-SHELL
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
@Rory-Z
Rory-Z / create-github-milestone.sh
Last active August 26, 2019 01:47 — forked from stefanbuck/upload-github-release-asset.sh
Script to GitHub API v3.
#!/usr/bin/env bash
#
#
# This script accepts the following parameters:
#
# * owner
# * repo
# * version
# * github_api_token
#
@Rory-Z
Rory-Z / checkout.sh
Last active September 10, 2018 09:55
#!/bin/sh
mkdir emqx_rep
cd emq-relx
if [ ! -d "deps" ]; then
make
fi
cd deps
list=$(ls -F |grep "/$")