Skip to content

Instantly share code, notes, and snippets.

View marclop's full-sized avatar

Marc Lopez Rubio marclop

View GitHub Profile
package main
import (
"fmt"
"log"
"math/big"
"os"
"strconv"
"go.elastic.co/apm/v2"
@marclop
marclop / CLA
Last active September 22, 2017 14:31
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Keybase proof

I hereby claim:

  • I am marclop on github.
  • I am marclop (https://keybase.io/marclop) on keybase.
  • I have a public key whose fingerprint is 5F6D 5F16 45E1 ADEF A436 574F D208 328B 38B7 D4F0

To claim this, I am signing this object:

#!/bin/sh
#
# consul-template - this script manages the consul-template
#
# chkconfig: 345 97 03
# processname: consul-template
### BEGIN INIT INFO
# Provides: consul-template
# Required-Start: $local_fs $network
@marclop
marclop / consul
Last active August 29, 2015 14:27
consul init
#!/bin/bash
#
# consul Manage the consul agent
#
# chkconfig: 2345 95 95
# description: Consul is a tool for service discovery and configuration
# processname: consul
# config: /etc/consul.conf
# pidfile: /var/run/consul.pid
@marclop
marclop / kibana4
Created July 17, 2015 11:57
kibana4init
#!/bin/sh
#
# /etc/init.d/kibana4 -- startup script for kibana4
#
### BEGIN INIT INFO
# Provides: kibana4
# Required-Start: $network $remote_fs $named
# Required-Stop: $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
wait4eth1() {
CNT=0
until ip a show eth1 | grep -q UP
do
[ $((CNT++)) -gt 60 ] && break || sleep 1
done
sleep 1
}
wait4eth1