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
| [root@alarm ~]# ipython2 -c "import sys; sorted(sys.modules.items())" | |
| Out[1]: | |
| [('ConfigParser', | |
| <module 'ConfigParser' from '/usr/lib/python2.7/ConfigParser.pyc'>), | |
| ('IPython', | |
| <module 'IPython' from '/usr/lib/python2.7/site-packages/IPython/__init__.pyc'>), | |
| ('IPython.config', | |
| <module 'IPython.config' from '/usr/lib/python2.7/site-packages/IPython/config/__init__.pyc'>), | |
| ('IPython.config.IPython', None), | |
| ('IPython.config.__builtin__', None), |
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
| [root@alarm ~]# ipython2 -c "import sys; sorted([k for k,v in sys.modules.items() if v and 'ipy' in k.lower()])" | |
| Out[1]: | |
| ['IPython', | |
| 'IPython.config', | |
| 'IPython.config.application', | |
| 'IPython.config.configurable', | |
| 'IPython.config.loader', | |
| 'IPython.core', | |
| 'IPython.core.alias', | |
| 'IPython.core.application', |
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
| 2016-09-12 09:00:05 +0000 [info]: reading config file path="/fluentd/etc/fluent.conf" | |
| 2016-09-12 09:00:05 +0000 [info]: starting fluentd-0.14.6 | |
| 2016-09-12 09:00:05 +0000 [info]: spawn command to main: /usr/bin/ruby -Eascii-8bit:ascii-8bit /usr/bin/fluentd -c /fluentd/etc/fluent.conf -p /fluentd/plugins --under-supervisor | |
| 2016-09-12 09:00:05 +0000 [info]: reading config file path="/fluentd/etc/fluent.conf" | |
| 2016-09-12 09:00:05 +0000 [info]: starting fluentd-0.14.6 without supervision | |
| 2016-09-12 09:00:05 +0000 [info]: gem 'fluent-plugin-loggly' version '0.0.8' | |
| 2016-09-12 09:00:05 +0000 [info]: gem 'fluentd' version '0.14.6' | |
| 2016-09-12 09:00:05 +0000 [info]: adding filter pattern="**" type="stdout" | |
| 2016-09-12 09:00:05 +0000 [info]: adding match pattern="**" type="copy" | |
| 2016-09-12 09:00:05 +0000 [info]: adding source type="tail" |
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
| import os | |
| import time | |
| import json | |
| import logging | |
| import platform | |
| import datetime | |
| import requests | |
| import threading | |
| import subprocess |
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
| mysql> describe weather; | |
| +---------+------------+------+-----+---------+-------------------+ | |
| | Field | Type | Null | Key | Default | Extra | | |
| +---------+------------+------+-----+---------+-------------------+ | |
| | date | char(10) | NO | PRI | NULL | | | |
| | geohash | char(4) | NO | PRI | NULL | | | |
| | weather | json | YES | | NULL | | | |
| | todo | tinyint(4) | YES | MUL | NULL | VIRTUAL GENERATED | | |
| +---------+------------+------+-----+---------+-------------------+ | |
| 4 rows in set (0.01 sec) |
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
| 00: .... .... .... .... .... .... .... .... .... .... ...# ...# .... .... .... ..## :4 | |
| 01: .... .... .... .... .... .... .... .... .... .... .##. .#.. .... .... .... ##.. :5 | |
| 02: .... .... .... #... .... .... ##.. #... .... .... .... #... .... .... .... .... :5 | |
| 03: .... .... .... .... .... .... .... .... .... ...# .... .... ...# ...# ..## .... :5 | |
| 04: .... #... .... .... .#.. ##.. .... .... .... .#.. .... .... .... .... .... .... :5 | |
| 05: ...# ..## .... .... .... ..#. .... .... .... ..#. .... .... .... .... .... .... :5 | |
| 06: .... .... .... .... .... .... .... .... ..#. .... .... .... ..#. .##. .#.. .... :5 | |
| 07: .... .... .... .... .... .... .... .... .... .... #... .... ##.. #... #... .... :5 | |
| 08: .... .... ...# .... .... ...# ..## ...# .... .... .... .... .... .... .... .... :5 | |
| 09: #... .... .... .... #... .... .... .... ##.. #... .... .... .... .... .... .... :5 |
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 --git a/Makefile.inc b/Makefile.inc | |
| index 6a68fce..acfd282 100644 | |
| --- a/Makefile.inc | |
| +++ b/Makefile.inc | |
| @@ -16,6 +16,7 @@ CSOURCES = ares__close_sockets.c \ | |
| ares_getnameinfo.c \ | |
| ares_getsock.c \ | |
| ares_init.c \ | |
| + ares_reinit.c \ | |
| ares_library_init.c \ |
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
| 00: .... .... .... .... .... .... .... .... .... .... ...# ...# .... .... .... ..## :4 | |
| 01: .... .... .... .... .... .... .... .... .... .... .##. .#.. .... .... .... ##.. :5 | |
| 02: .... .... .... #... .... .... ##.. #... .... .... .... #... .... .... .... .... :5 | |
| 03: .... .... .... .... .... .... .... .... .... ...# .... .... ...# ...# ..## .... :5 | |
| 04: .... #... .... .... .#.. ##.. .... .... .... .#.. .... .... .... .... .... .... :5 | |
| 05: ...# ..## .... .... .... ..#. .... .... .... ..#. .... .... .... .... .... .... :5 | |
| 06: .... .... .... .... .... .... .... .... ..#. .... .... .... ..#. .##. .#.. .... :5 | |
| 07: .... .... .... .... .... .... .... .... .... .... #... .... ##.. #... #... .... :5 | |
| 08: .... .... ...# .... .... ...# ..## ...# .... .... .... .... .... .... .... .... :5 | |
| 09: #... .... .... .... #... .... .... .... ##.. #... .... .... .... .... .... .... :5 |
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
| def game(): | |
| """Play a single game, interactively""" | |
| last = None # last word entered by player | |
| seen = set() # all the words player tried so far | |
| while True: | |
| guess = input("Please type a word: ") | |
| if not guess: |
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
| [ | |
| { | |
| "refs": [ | |
| "tag: 0.1" | |
| ], | |
| "hash": "6bf194888b1c0e40d68aae9424c69e798395b165", | |
| "hashAbbrev": "6bf1948", | |
| "tree": "37097d59d05d6216edb082f62ce15be4eb6b732d", | |
| "treeAbbrev": "37097d5", | |
| "parents": [], |
OlderNewer