Skip to content

Instantly share code, notes, and snippets.

View vasyakrg's full-sized avatar
🎯
Focusing

Vassiliy Yegorov vasyakrg

🎯
Focusing
View GitHub Profile
#!/bin/bash
GROUP=2019-05
BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
TRAVISTEST_RUN="cd travis/ && sh ./run.sh"
REPO=https://github.com/vasyakrg/infra-tests.git
DOCKER_IMAGE=vasyakrg/infratest:0.2
DOCKER_NAME=infratest
echo "Run tests"
mkdir -p $(go env GOPATH)/src/github.com/hashicorp && cd $_
git clone https://github.com/hashicorp/packer.git
cd packer
make dev
@vasyakrg
vasyakrg / tflint-install.sh
Created July 20, 2019 07:25
tflint-install.sh
#!/bin/bash -e
processor=$(uname -m)
if [ "$processor" == "x86_64" ]; then
arch="amd64"
else
arch="386"
fi
PATH="${HOME}/bin"
TMPDIR="${TMPDIR:-/tmp}"
VERSION="0.11.11"
if ! terraform version ; then
mkdir -p "${HOME}/bin"
pushd "${TMPDIR}" ;
curl -sSL
-o terraform.zip
"https://releases.hashicorp.com/terraform/${VERSION}/terraform_${VERSION}_linux_amd64.zip" ;
@vasyakrg
vasyakrg / gitconfig
Created June 27, 2019 05:52
aliases for live
[alias]
gr = log --all --decorate --oneline --graph
co = checkout
ci = commit -m
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
@vasyakrg
vasyakrg / gist:899607b4739bacb8801f3fd6951e5c83
Last active March 30, 2023 16:45
nginx load balance for proxmox
upstream proxmox {
server pve1:8006;
server pve2:8006;
server pve3:8006;
}
server {
listen 80 default_server;
rewrite ^(.*) https://$host$1 permanent;
}