I hereby claim:
- I am icadariu on github.
- I am ionut (https://keybase.io/ionut) on keybase.
- I have a public key whose fingerprint is D5CA 93B2 81C7 4457 DDC8 388D 5A54 8BD5 A24E AEB5
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| hostname="consul-$(curl -s http://169.254.169.254/latest/meta-data/instance-id)" | |
| CONF=/etc/consul/config/000-consul.json | |
| TEMPLATE="/mnt/dashboard/consul-config/config.json" | |
| x=0 | |
| rm -f $CONF | |
| rm -f /tmp/instances $$ rm -f /tmp/*.json | |
| restart consul |
I hereby claim:
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am icadariu on github. | |
| * I am ionut (https://keybase.io/ionut) on keybase. | |
| * I have a public key whose fingerprint is 1A7C CFAD 4926 2B2E EE5F B26A F16E B43D CFD1 22A0 | |
| To claim this, I am signing this object: |
| # Ubuntu 14.04 don't have nsenter - the straight forward way required me to install build tools and etc. | |
| # I preferred to keep the system clean and install nsenter in a container and then copy the command to the host | |
| # Note - its also possible to run nsenter from a container (didn't tried) https://github.com/jpetazzo/nsenter | |
| # start a container | |
| docker run --name nsenter -it ubuntu:14.04 bash | |
| ## in the docker | |
| apt-get update | |
| apt-get install git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool |
| #!/bin/bash | |
| #no PATH, no way to accidently run any programs | |
| PATH='' | |
| #useful variables | |
| term_height=0 | |
| term_width=0 | |
| term_scroll_height=0 | |
| status_line_row=0 |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| __author__ = "Adrien Pujol - http://www.crashdump.fr/" | |
| __copyright__ = "Copyright 2013, Adrien Pujol" | |
| __license__ = "Mozilla Public License" | |
| __version__ = "0.3" | |
| __email__ = "[email protected]" | |
| __status__ = "Development" | |
| __doc__ = "Check a TLS certificate validity." |