- msgid table
msgid tableはmsgidごとに実際のパケットを 以下の形式で保存する。
#{msgid => #{packet => packet, ref_count => integer}}
| package main | |
| import ( | |
| "github.com/shirou/gopsutil" | |
| "github.com/influxdb/influxdb-go" | |
| "fmt" | |
| "time" | |
| ) | |
| const ( |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # norikra-client-python | |
| # https://github.com/norikra/norikra-client-python | |
| import json | |
| import sys | |
| import mosquitto |
| builder/html.pyのwrite_doc()で | |
| self.env.toc_secnumbers.get(docname, {}) | |
| しているが、singlehtmlでは、docnameは必ずindexのため、空となる。 | |
| また、toc_secnumbersには | |
| { | |
| 'aaa': {'': (9,), '#id2': (9, 1, 2), '#id3': (9, 2), '#hige': (9, 1), '#hoge': (9, 1, 1)}, | |
| 'bbb': {'': (7,), '#id2': (7, 1), '#id3': (7, 2), '#id4': (7, 3), '#id5': (7, 4)}, | |
| } | |
| というデータで入っているため、'#id2'が重複している。 |
| 前提 | |
| ----------- | |
| - docker 0.9.1 | |
| - lxcを入れること | |
| - linux 3.11で確認。 3.8以上じゃないとだめっぽい。 | |
| - ubuntu image (docker pull ubuntuで取ってきたもので試してみた) | |
| - imageにはpython2を入れておくこと | |
| - /usr/bin/tee がimageにあること |
| latex_elements = { | |
| 'pointsize': '11pt', | |
| 'papersize': 'a4paper', | |
| 'transition': '', | |
| 'extraclassoptions': ',openany,oneside', | |
| 'babel': '\\usepackage[japanese]{babel}', | |
| } | |
| latex_docclass = {'manual': 'jreport'} |
| --- | |
| - hosts: all | |
| sudo: yes | |
| vars: | |
| - user_name: worker | |
| - github_name: shirou | |
| roles: | |
| - initilize_user |
| import sys | |
| import gzip | |
| def zcat(): | |
| count = 0 | |
| for line in sys.stdin: | |
| count += 1 | |
| print count |
msgid tableはmsgidごとに実際のパケットを 以下の形式で保存する。
#{msgid => #{packet => packet, ref_count => integer}}
| --- | |
| - hosts: localhost | |
| sudo: no | |
| gather_facts: no | |
| tasks: | |
| - shell: grep ham /tmp/testfile | grep spam # pipeを使うのでshellじゃないとだめ | |
| register: grep # grep変数に入れる | |
| ignore_errors: yes # エラーになっても無視する | |
| failed_when: false # これを入れると赤い文字にならない | |
| - lineinfile: dest=/tmp/testfile insertafter=EOF line='ham' |
| .. _ul: | |
| - hoge | |
| .. _ul-child: | |
| - hige | |
| - :ref:`箇条書き <ul>` |