Skip to content

Instantly share code, notes, and snippets.

View dupuy's full-sized avatar

Alexander Dupuy dupuy

View GitHub Profile
#!/bin/sh
#
# For each ref, validate the commit.
#
# - It disallows deleting branches without a /.
# - It disallows non fast-forward on branches without a /.
# - It disallows deleting tags without a /.
# - It disallows unannotated tags to be pushed.
@dupuy
dupuy / Dumper.py
Last active January 5, 2017 03:02 — forked from karelin/Dumper.py
"""
A perl Data.Dumper clone for Python
Author: simon@log4think.com
2011-07-08
"""
#!/bin/env python
import sys
from types import *
@dupuy
dupuy / gist:5418227
Last active December 16, 2015 10:09
#!/bin/bash
#
# Install better common utilities
#
# Copyright (c) 2012 Barry Allard <barry.allard@gmail.com>
#
# Also available at: https://gist.github.com/3452111
# UDF template for including in other scripts
- What do Etcd, Consul, and Zookeeper do?
- Service Registration:
- Host, port number, and sometimes authentication credentials, protocols, versions
numbers, and/or environment details.
- Service Discovery:
- Ability for client application to query the central registry to learn of service location.
- Consistent and durable general-purpose K/V store across distributed system.
- Some solutions support this better than others.
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
- Centralized locking can be based on this K/V store.