Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
sudo yum update | |
sudo yum install -y tar wget | |
# Install Mesos dependencies | |
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
#sudo vi /etc/yum.repos.d/wandisco-svn.repo and add the following content | |
#[WANdiscoSVN] | |
#name=WANdisco SVN Repo 1.9 | |
#enabled=1 | |
#baseurl=http://opensource.wandisco.com/centos/7/svn-1.9/RPMS/$basearch/ | |
#gpgcheck=1 |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
call plug#begin('~/.vim/plugged') | |
Plug 'fatih/vim-go' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'preservim/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'tpope/vim-fugitive' | |
call plug#end() | |
syntax on | |
colo pablo |
#!/bin/bash | |
# install qemu and other stuffs | |
sudo apt-get install qemu \ | |
qemu-system \ | |
qemu-utils \ | |
uml-utilities \ | |
virt-manager \ | |
dmg2img \ | |
git \ |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#!/bin/bash | |
# Download latest kubectl version | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl | |
# change permission to executable binary | |
chmod +x ./kubectl | |
# move to /usr/local/bin | |
sudo mv ./kubectl /usr/local/bin/kubectl |
#!/bin/bash | |
# Prepare for new repos | |
sudo apt-get -y install apt-transport-https ca-certificates software-properties-common curl | |
# Add docker repo | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" |
#!/bin/bash | |
# download | |
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
# unzip | |
unzip ngrok-stable-linux-amd64.zip | |
# move to /usr/local/bin | |
sudo mv ngrok /usr/local/bin |
var mqtt = require('mqtt') | |
var client = mqtt.connect('mqtt://test.mosquitto.org') | |
client.on('connect', function () { | |
client.subscribe('presence') | |
client.publish('presence', 'Hello mqtt') | |
}) | |
client.on('message', function (topic, message) { | |
// message is Buffer |
#!/bin/bash | |
NAMESPACE="$1" | |
NAME="$2" | |
TAG="$3" | |
echo "==================================" | |
echo "|| ||" | |
echo "|| Docker image builder ||" | |
echo "|| ||" |