-
Type: A context that describes some value.
-
Sum type: A kind of user-defined type that is a boolean XOR of possible types, where only one is chosen for a given instantiation. Also called a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # pragma pylint: disable=bad-whitespace | |
| ############################################################################### | |
| # ntpq.py - Python NTP control library. | |
| # Copyright (C) 2016 Peter C. Norton (@pcn on github) | |
| # | |
| # this addition to ntplib is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU Lesser General Public License as published by the | |
| # Free Software Foundation; either version 2 of the License, or (at your option) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # gwillem@gmail.com | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ======= | |
| Modules | |
| ======= | |
| This is an in-depth dive into understanding how Ansible makes use of modules. | |
| It will be of use to people working on the portions of the Core Ansible Engine | |
| that execute a module, it may be of interest to people writing Ansible Modules, | |
| and people simply wanting to use Ansible Modules will likely want to read | |
| a different paper. |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.