此篇紀錄處理門牌地址格式過程遇到的一些問題。
依地址-WIKI解說,台灣地址大致由下列部分組成
縣市_行政區_街道名稱_門牌編號
>EX: 台中市_中區_台灣大道1段_1號
此篇紀錄處理門牌地址格式過程遇到的一些問題。
依地址-WIKI解說,台灣地址大致由下列部分組成
縣市_行政區_街道名稱_門牌編號
>EX: 台中市_中區_台灣大道1段_1號
| #!/usr/bin/env python | |
| import argparse | |
| import redis | |
| def connect_redis(conn_dict): | |
| conn = redis.StrictRedis(host=conn_dict['host'], | |
| port=conn_dict['port'], | |
| db=conn_dict['db']) | |
| return conn |
| #!/bin/bash | |
| # Setup and enable auditd | |
| # MUST REBOOT AFTER SETUP | |
| # | |
| # FUNCTIONALITIES: | |
| # | |
| # * Auditing user TTY | |
| # aureport --tty | |
| # | |
| # * Auditing root commands (real uid) |
| filter{ | |
| grok { | |
| match => ["message", "%{TIMESTAMP_ISO8601:log_timestamp} %{WORD:iisSite} %{IPORHOST:site} %{WORD:method} %{URIPATH:page} %{NOTSPACE:querystring} %{NUMBER:port} %{NOTSPACE:username} %{IPORHOST:clienthost} %{NOTSPACE:useragent} %{NOTSPACE:referer} %{NUMBER:response} %{NUMBER:subresponse} %{NUMBER:scstatus} %{NUMBER:bytes:int} %{NUMBER:timetaken:int}"] | |
| } | |
| } |
| . | |
| ├── matree | |
| ├── swift | |
| │ ├── 00503_0_254.242_2013mar02 | |
| │ ├── 00546_0_ensbdasa-09aug2013 | |
| │ ├── 00553_0_ensbdpix3-09aug2013 | |
| │ ├── 00554_0_ensbdpix4-09aug2013 | |
| │ ├── 00555_0_ensbdrtr1-2013aug09 | |
| │ ├── 00557_0_ENSBDVPN1-02AUG2013 | |
| │ ├── 00558_0_ENSBDVPN2-02AUG2013 |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |