Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

View dupuy's full-sized avatar

Alexander Dupuy dupuy

View GitHub Profile
- 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.
@dupuy
dupuy /expired.pl
CreatedFebruary 13, 2015 11:40
Perl script to report on password and account expirations from /etc/shadow (Linux)
#!/usr/bin/perl -w
use strict;
use POSIX'strftime';
use constantDATEFMT=>"%Y-%m-%d";
use constantSHADOWFILE=>"/etc/shadow";
use constantDAYSECS=> 60 * 60 * 24;
subdatefmt($)
{
@dupuy
dupuy /keybase.md
CreatedOctober 6, 2014 14:17
My keybase.io proof

I hereby claim:

  • I am dupuy on github.
  • I am dupuy (https://keybase.io/dupuy) on keybase.
  • I have a public key whose fingerprint is BBE8 C56A 9FCB 1F81 9C79 9D7B 208B 8A8B EC87 905D

To claim this, I am signing this object:

#!/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 activeJanuary 5, 2017 03:02— forked fromkarelin/Dumper.py
"""
A perl Data.Dumper clone for Python
Author: simon@log4think.com
2011-07-08
"""
#!/bin/env python
importsys
fromtypesimport*
@dupuy
dupuy /gist:5418227
Last activeDecember 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
@dupuy
dupuy /README.rst
Last activeJune 4, 2025 14:19
Common markup for Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation;the most popular ones (generally, not just at GitHub) areMarkdownandreStructuredText. Markdown is sometimes considered easier touse, and is often preferred when the purpose is simply to generate HTML.On the other hand, reStructuredText is more extensible and powerful,with native support (not just embedded HTML) for tables, as well asthings like automatic generation of tables of contents.


[8]ページ先頭

©2009-2025 Movatter.jp