Rich Adams sur Twitter : "Don't like how your metrics look? Here @pagerduty we use advanced #DevOps patterns to normalise our time-series data. Add UID to state retention file path · eb85a61 · monitoring-plugins/monitoring-plugins. 15.4. argparse — Parser for command line options, arguments and sub-commands — Python v2.7.1 documentation. The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv. The argparse module also automatically generates help and usage messages and issues errors when users give the program invalid arguments. 15.4.1.
Example The following code is a Python program that takes a list of integers and produces either the sum or the max: import argparse parser = argparse.ArgumentParser(description='Process some integers.')parser.add_argument('integers', metavar='N', type=int, nargs='+', help='an integer for the accumulator')parser.add_argument('--sum', dest='accumulate', action='store_const', const=sum, default=max, help='sum the integers (default: find the max)') args = parser.parse_args()print args.accumulate(args.integers) Assuming the Python code above is saved into a file called prog.py, it can be run at the command line and provides useful help messages: 15.4.1.1.
Note. V8. RSS Is Dying, and You Should Be Very Worried. RSS makes it possible for me to check 100s of sites a day. I only actually implicitly go and read two, everything else goes through the RSS reader. If I didn’t have RSS then I wouldn’t bother keeping an eye on that many sites in the first place. Because me and you—dear technical readers—don’t have to suffer that routine anymore, it’s not reason that everybody else should. Bringing all the news updates straight to the user every day is a great killer feature that vendors should be waving from the fronts of their home pages! Browser vendors talk about their software helping users get the most out of the great ’Web; right next to “browsing”, RSS should be the second most important feature of browsers! Imagine for example that on the Chrome home page, where sites you visit often appear, Chrome also was following the RSS of these sites in the background, and listing new news items for those sites on the home page, all without you having to do anything.
Google Chrome has no RSS reader.
GpgExtension. This extension is currently being distributed along with Mercurial. Author: Benoit Benissot 1. Overview This extension allows for signing of Mercurial revisions, checking them or listing of signed changesets. 2. Configuration Configure your .hgrc to enable the extension by adding following lines: [extensions] hgext.gpg= Use the [gpg] stanza for optional configuration tweaks for the extension: [gpg] # if cmd is not provided it defaults to gpg cmd=/path/to/gpg-command-to-use # key is optional and can be provided on the command line key=KEYID 3. Sign one or more revisions: hg sign [OPTION]... Check signed revision: hg sigcheck REVISION List signed revisions: hg sigs Use hg help for additional options.
If you want to make sure only signed changesets are pushed to a repository, you could use the CheckGpgSig hook which is part of HgHookLib project. 4. CommitsigsExtension CategoryBundledExtension.
PHP. PHP/MySQL.