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
SELECT | |
* | |
FROM | |
table | |
WHERE | |
flag = TRUE | |
AND | |
category IN ('a', 'b') | |
; |
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
series: [ | |
{ | |
name: 'name1', | |
stack: 'aaa', | |
data: [ | |
[Date.parse('2014-06-30'), 5], | |
[Date.parse('2014-07-01'), 3], | |
[Date.parse('2014-07-02'), 4], | |
[Date.parse('2014-07-03'), 7], | |
[Date.parse('2014-07-04'), 2] |
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
(defun swap-buffers () | |
"Swapping buffers in two windows" | |
(interactive) | |
(let ((current-w (frame-selected-window)) | |
(current-b (window-buffer (frame-selected-window))) | |
(other-w (get-lru-window)) | |
(other-b (window-buffer (get-lru-window)))) | |
(if (not (one-window-p)) | |
(progn | |
(select-window current-w) |
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
<source> | |
type tail | |
format /^(?<ip>[0-9\\.]+) \\S+ \\S+ \\[(?<time>[^\\]]+)\\] (?<server>\\S+) "(?<method>\\S+) (?<request_uri>\\S+) (?<http>\\S+)" (?<status>\\d+) (?<bytes>\\S+) \\S+ "(?<user_agent>[^\\"]+)"/ | |
time_format %d/%b/%Y:%T %z | |
path /var/log/tdiary_access.log | |
pos_file /var/log/td-agent/tdiary_access.log.pos | |
tag tdiary.access | |
</source> | |
<match tdiary.**> |
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
(source gnu) | |
(source melpa) | |
(depends-on "auto-complete") | |
(depends-on "auto-complete-rst") | |
(depends-on "auto-install") | |
(depends-on "coffee-mode") | |
(depends-on "color-moccur") | |
(depends-on "dash-at-point") | |
(depends-on "editorconfig") |
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
<source> | |
type tail | |
format /^(?<ip>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] (?<server>\S+) "(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?" (?<status>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<user_agent>[^\"]*)")?$/ | |
time_format %d/%b/%Y:%H:%M:%S %z | |
path /var/log/tdiary_access.log | |
pos_file /var/log/td-agent/tdiary_access.log.pos | |
tag tdiary.access | |
</source> | |
<match tdiary.access> |
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
% curl -XGET "http://localhost:9200/logstash-2014.11.03/_search?pretty=true&q=server:suzuki.tdiary.net&fields=server,path&size=3" | |
{ | |
"took" : 6, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 5, | |
"successful" : 5, | |
"failed" : 0 | |
}, | |
"hits" : { |
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
class FirefoxDeveloperEdition < Cask | |
version :latest | |
sha256 :no_check | |
url 'https://download.mozilla.org/?product=firefox-aurora-latest-ssl&os=osx&lang=en-US' | |
homepage 'https://www.mozilla.org/en-US/firefox/developer/' | |
license :mpl | |
app 'FirefoxDeveloperEdition.app' | |
end |
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
{ | |
"_index": "_river", | |
"_type": "suzuki_tdiary_net", | |
"_id": "_meta", | |
"_version": 1, | |
"found": true, | |
"_source": { | |
"type": "web", | |
"crawl": { | |
"index": "webindex", |