- use some virtual machine
- Download riemann
wget http://aphyr.com/riemann/riemann-0.2.4.tar.bz2
tar xvfj riemann-0.2.4.tar.bz2
cd riemann-0.2.4
Vagrant.configure(2) do |config| | |
# | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "vidible-v2" | |
config.vm.box_url = "https://s3-eu-west-1.amazonaws.com/aol-vagrant-box/elastic-redis-mongo3.0.3.box" | |
config.ssh.username = "vagrant" | |
config.ssh.password = "vagrant" | |
# Disable automatic box update checking. If you disable this, then | |
# boxes will only be checked for updates when the user runs |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'mileszs/ack.vim' |
# vim: fdm=marker | |
# vim bindings | |
setw -g mode-keys vi | |
set-option -g default-shell /bin/zsh | |
# It causes tmux to resize a window based on the smallest client actually | |
# viewing it, not on the smallest one attached to the entire session. | |
setw -g aggressive-resize on | |
unbind C-a |
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="pygmalion" | |
plugins=(git lein tmux rvm \ | |
common-aliases cp \ | |
extract gem history \ | |
history-substring-search \ | |
knife pip rake ruby vundle docker-compose\ | |
colorize tmuxinator bower npm docker) |
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y tmux vim git zsh mlocate httpie curl | |
curl -L https://www.chef.io/chef/install.sh | sudo bash | |
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
curl https://gist.githubusercontent.com/alexshd/bc39c6e4c2969e3286cd/raw/dda11b7fb968b6e9d344fad0f0c44400f42ad0eb/.tmux.conf > ~/.tmux.conf | |
curl https://gist.githubusercontent.com/alexshd/756459d0e840c02d47ee/raw/d6235761fb360bad93db6017f3fedbd65a871ab1/.vimrc > ~/.vimrc | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
#! /opt/chef/embedded/bin/ruby | |
require 'slack-notifier' | |
require 'trollop' | |
host = ENV['HOSTNAME'] | |
opts = Trollop.options do | |
opt :message, 'message to send', type: :string, default: 'OK' | |
opt :channel, 'slack channel to use', type: :string, default: '#shd-test' | |
opt :user, 'user name to use in the message', type: :string, default: host |
{ | |
"server": "riemann", | |
"workspaces": [ | |
] | |
} |
linters: | |
enable-all: true | |
disable: | |
- forbidigo | |
- varnamelen | |
- errcheck | |
- golint | |
- exhaustivestruct | |
- ifshort |
# `https://taskfile.dev/` | |
version: '3' | |
tasks: | |
go:test:all: | |
cmds: | |
- go test -v ./... -cover -race | |
sources: | |
- ./**/*.go |