This file contains 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
## | |
# This is an example of how one might go about monkey-patching custom syntax | |
# into the gollum wiki engine. | |
## | |
# Monkey Patch the gollum library to support {.css-class} syntax | |
# Mechanics derived from http://stackoverflow.com/questions/4470108/when-monkey-patching-a-method-can-you-call-the-overridden-method-from-the-new-i | |
class Gollum::Markup | |
# Add our class variable, cssmap. |
This file contains 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
#!/bin/sh | |
USAGE="list | list-single | <types> ..." | |
LONG_USAGE="Generate/Append the repo's .gitignore file using the gitignore.io api | |
`curl -s http://gitignore.io/api/`" | |
SUBDIRECTORY_OK= | |
NONGIT_OK=1 | |
OPTIONS_SPEC= |
This file contains 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
--- | |
- name: Play 0 (all is good) | |
hosts: all | |
become: false | |
connection: local | |
gather_facts: no | |
tasks: | |
- name: Task 1 -- Runs OK | |
command: date |
This file contains 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
--- | |
- hosts: localhost | |
connection: local | |
become: true | |
gather_facts: false | |
tasks: | |
- block: | |
- yum: | |
name: foobar | |
state: installed |
This file contains 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
*.array | |
*.inline |
This file contains 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
[root@port-db-dv3-01 ~]# /usr/sbin/subscription-manager status | |
Traceback (most recent call last): | |
File "/usr/sbin/subscription-manager", line 58, in ? | |
from subscription_manager.injectioninit import init_dep_injection | |
File "/usr/share/rhsm/subscription_manager/injectioninit.py", line 17, in ? | |
from subscription_manager.cache import ProductStatusCache, EntitlementStatusCache, \ | |
File "/usr/share/rhsm/subscription_manager/cache.py", line 33, in ? | |
from subscription_manager.jsonwrapper import PoolWrapper | |
File "/usr/share/rhsm/subscription_manager/jsonwrapper.py", line 18, in ? | |
from subscription_manager.utils import is_true_value |
This file contains 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
# ansible-playbook -i localhost, filtering-by-group_by.yml | |
- name: Gather facts and partition hosts | |
hosts: '!__partitioned' | |
become: false | |
connection: local | |
tasks: | |
- group_by: | |
key: __skipme | |
- group_by: |
This file contains 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
# ansible-playbook -i localhost, ./demo-facts-lifetime.yml | |
- hosts: localhost | |
connection: local | |
tasks: | |
- name: Facts gathereed OK | |
debug: | |
var: ansible_date_time.epoch | |
- name: Sleep for a few seconds | |
command: sleep 2 |
This file contains 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
{ | |
"Lines": [ | |
{ | |
"Words": [ | |
{ | |
"WordText": "DAY", | |
"Left": 20, | |
"Top": 103, | |
"Height": 11, | |
"Width": 29 |
OlderNewer