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
| --- | |
| # This playbook deploys the AWX application (database, web and worker) to a | |
| # single server. | |
| - hosts: all | |
| tasks: | |
| - name: group hosts by distribution | |
| group_by: key="{{ ansible_distribution }}-{{ ansible_distribution_version }}" | |
| - hosts: RHEL-6*:CentOS-6*:SL-6* |
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
| (ansible)%ansible-playbook -i host.ini test.yml [~/tmp/ansible] | |
| __________________ | |
| < PLAY [localhost] > | |
| ------------------ | |
| \ ,__, | |
| \ (oo)____ | |
| (__) )\ | |
| ||--|| * | |
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
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "io/ioutil" | |
| "strings" | |
| "time" | |
| "encoding/json" | |
| ) |
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
| diff -r f1a8f84556d7 tinkerer/cmdline.py | |
| --- a/tinkerer/cmdline.py Tue Apr 02 23:28:06 2013 +0700 | |
| +++ b/tinkerer/cmdline.py Wed Apr 03 15:31:24 2013 +0900 | |
| @@ -54,7 +54,7 @@ | |
| # silence Sphinx if in quiet mode | |
| if quiet or filename_only: | |
| flags.append("-q") | |
| - flags += ["-d", paths.doctree, "-b", "html", paths.root, paths.html] | |
| + flags += ["-d", paths.doctree, "-b", "dirhtml", paths.root, paths.html] |
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
| = ひとつめの章 | |
| == 節 | |
| 節です | |
| === 項 | |
| 項です。 | |
| ==== 段(見出し) | |
| 段(見出し)です。 | |
| == 箇条書き | |
| * 第一の項目 -1 |
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 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import socket | |
| import argparse | |
| import hashlib | |
| from boto.s3.connection import S3Connection | |
| from boto.s3.key import Key |
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
| % find . -name "*.py" | misspellings -f - | |
| ./blockdiag/imagedraw/filters/linejump.py:34: reciever -> "receiver" | |
| ./blockdiag/imagedraw/filters/linejump.py:36: reciever -> "receiver" | |
| ./blockdiag/imagedraw/filters/linejump.py:62: Reciever -> "Receiver" |
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
| see https://github.com/shirou/erlang-ltsv |
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
| %./dev/dev1/bin/riak start | |
| %./dev/dev2/bin/riak start | |
| %./dev/dev3/bin/riak start | |
| %./dev/dev2/bin/riak-admin cluster join dev1@127.0.0.1 | |
| Success: staged join request for 'dev2@127.0.0.1' to 'dev1@127.0.0.1' | |
| %./dev/dev3/bin/riak-admin cluster join dev1@127.0.0.1 | |
| Success: staged join request for 'dev3@127.0.0.1' to 'dev1@127.0.0.1' | |
| %./dev/dev1/bin/riak-admin cluster plan | |
| =============================== Staged Changes ================================ | |
| Action Nodes(s) |
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
| エラーハンドリング | |
| ======================= | |
| 拡張を書いているときに、エラーを出したいときがあります。こういう時には、 | |
| sphinx.errorsで定義されている例外を使いますと、通常の例外よりも表示が | |
| 親切になります。 | |
| sphinx.errorsには以下の例外が定義されています。 | |
| - SphinxError |