Skip to content

Instantly share code, notes, and snippets.

View marcelki's full-sized avatar

Marcel K marcelki

  • Germany, Berlin
View GitHub Profile
2017/08/24 10:55:29.197329 [INFO] consul-template v0.19.0 (33b34b3)
2017/08/24 10:55:29.197539 [INFO] (runner) creating new runner (dry: false, once: false)
2017/08/24 10:55:29.198334 [DEBUG] (runner) final config: {"Consul":{"Address":"127.0.0.1:8500","Auth":{"Enabled":false,"Username":"","Password":""},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","Transport":{"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":90000000000,"MaxIdleConns":100,"MaxIdleConnsPerHost":2,"TLSHandshakeTimeout":10000000000}},"Dedup":{"Enabled":false,"MaxStale":2000000000,"Prefix":"consul-template/dedup/","TTL":15000000000},"Exec":{"Command":"","Enabled":false,"Env":{"Blacklist":[],"Custom":[],"Pristine":false,"Whitelist":[]},"KillSignal":2,"KillTimeout":30000000000,"ReloadSignal":null,"Splay":0,"Timeout":0},"KillSignal":2,"LogLevel":"trace","M
2017/08/22 07:13:00.800727 [INFO] consul-template v0.19.0 (33b34b3)
2017/08/22 07:13:00.800903 [INFO] (runner) creating new runner (dry: true, once: false)
2017/08/22 07:13:00.801956 [DEBUG] (runner) final config: {"Consul":{"Address":"127.0.0.1:8500","Auth":{"Enabled":false,"Username":"","Password":""},"Retry":{"Attempts":12,"Backoff":250000000,"MaxBackoff":60000000000,"Enabled":true},"SSL":{"CaCert":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","Transport":{"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":90000000000,"MaxIdleConns":100,"MaxIdleConnsPerHost":2,"TLSHandshakeTimeout":10000000000}},"Dedup":{"Enabled":false,"MaxStale":2000000000,"Prefix":"consul-template/dedup/","TTL":15000000000},"Exec":{"Command":"","Enabled":false,"Env":{"Blacklist":[],"Custom":[],"Pristine":false,"Whitelist":[]},"KillSignal":2,"KillTimeout":30000000000,"ReloadSignal":null,"Splay":0,"Timeout":0},"KillSignal":2,"LogLevel":"trace","Ma
@marcelki
marcelki / parallel-exec.go
Created September 30, 2016 10:33
Run commands concurrently. Inspired by xargs.
package main
import (
"bufio"
"flag"
"fmt"
"os"
"os/exec"
"strings"
"sync"
@marcelki
marcelki / pystow.py
Created April 5, 2015 19:44
Experimental implementation of stow in python.
import sys
import os
import os.path
import argparse
def main():
'''Main entry point.'''
parser = argparse.ArgumentParser()
group = parser.add_mutually_exclusive_group()