Skip to content

Instantly share code, notes, and snippets.

@Nmishin
Nmishin / gist:514dfc6712df069a4b8c784469f21a9c
Created February 26, 2019 10:12
Consul unit tests fails
make test-ci
--> Checking for other consul instances
==> Building Consul - OSes: darwin, Architectures: amd64
Building sequentially with go install
---> darwin/amd64
--> Running go vet
go test -tags '' -i "./..."
--> Running go test
{ go test -v -short -timeout 8m -p 3 -parallel 4 -tags '' "./..." 2>&1 ; echo $? > exit-code ; } | tee test.log | egrep '^(ok|FAIL|panic:|--- FAIL|--- PASS)'
ok github.com/hashicorp/consul (cached) [no tests to run]
GOTEST_PKGS=./agent make test-ci
--> Checking for other consul instances
==> Building Consul - OSes: darwin, Architectures: amd64
Building sequentially with go install
---> darwin/amd64
--> Running go vet
go test -tags '' -i ./agent
--> Running go test
{ go test -v -short -timeout 8m -p 3 -parallel 4 -tags '' ./agent 2>&1 ; echo $? > exit-code ; } | tee test.log | egrep '^(ok|FAIL|panic:|--- FAIL|--- PASS)'
--- PASS: TestAgent_MultiStartStop (0.00s)
@Nmishin
Nmishin / EC2-Stopped-Tagged-Lambda.py
Created February 28, 2017 12:59 — forked from mlapida/EC2-Stopped-Tagged-Lambda.py
Using a lambda function, stop all instances that are tagged appropriately.
import boto3
import logging
#setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
#define the connection
ec2 = boto3.resource('ec2')
@Nmishin
Nmishin / docker-ssl-cert-generate
Created December 13, 2016 10:26 — forked from cameron/docker-ssl-cert-generate
Generate self-signed SSL certs for docker client <— HTTPS —> daemon
#! /bin/bash
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt
echo 01 > ca.srl
openssl genrsa -des3 -out ca-key.pem
openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem
openssl genrsa -des3 -out server-key.pem
openssl req -new -key server-key.pem -out server.csr
@Nmishin
Nmishin / certgen.rb
Created December 12, 2016 16:16 — forked from sheerun/certgen.rb
Docker TLS certificate generator
# Generates necessary certificates to ~/.docker
#
# Usage:
# bundle install
# ruby certgen.rb <domain>
require 'certificate_authority'
require 'fileutils'
if ARGV.empty?
@Nmishin
Nmishin / q35-pcie.xml
Last active September 4, 2015 10:56 — forked from lyarbean/q35-pcie.xml
q35-pcie.xml
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit x32
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>x32</name>
<uuid>858082e2-3cee-445b-9aa5-f805906cac78</uuid>
@Nmishin
Nmishin / win78.reg
Last active November 15, 2016 23:40 — forked from CHEF-KOCH/win78.reg
Windows 7 and 8 tweaks (all together)
Windows Registry Editor Version 5.00
;System Tweaks for Windows 7/8 2015 Edition
;Useful after a fresh Win installation
;Read the comments to see that will be changed and how you can optimize them
;No fucking "Tweak" tools needed....
;But if you still like tools, I recommend RSW (registry System Wizard .NET) @WinFAQ.de
;http://www.winfaq.de/shop.htm
# Get root:
sudo su
# Install prerequisites:
apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev
# Build libevent from source:
cd /usr/local/src