Skip to content

Instantly share code, notes, and snippets.

group 'suzuki' do
group_name 'suzuki'
action [:create]
end
user 'suzuki' do
comment 'Norio Suzuki'
group 'suzuki'
home '/home/suzuki'
shell '/bin/zsh'
{
"took" : 4,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 11,
{
"snapshots" : [ {
"snapshot" : "snapshot_2",
"indices" : [ "webindex" ],
"state" : "SUCCESS",
"start_time" : "2014-11-13T12:49:23.661Z",
"start_time_in_millis" : 1415882963661,
"end_time" : "2014-11-13T12:49:24.561Z",
"end_time_in_millis" : 1415882964561,
"duration_in_millis" : 900,
{
"snapshots": [
{
"snapshot": "snapshot_1",
"indices": [
"webindex",
"_river",
"logstash-2014.11.12",
"logstash-2014.11.13",
"logstash-2014.11.11",
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 9,
{
"mappings": {
"suzuki_tdiary_net": {
"dynamic_templates": [
{
"url": {
"match": "url",
"mapping": {
"type": "string",
"store": true,
{
"type": "web",
"crawl": {
"index": "webindex",
"url": ["http://suzuki.tdiary.net/"],
"includeFilter": ["http://suzuki.tdiary.net/.*"],
"excludeFilter": [
"http://suzuki.tdiary.net/images/.*",
"http://suzuki.tdiary.net/js/.*",
"http://suzuki.tdiary.net/theme/.*",
{
"_index": "_river",
"_type": "suzuki_tdiary_net",
"_id": "_meta",
"_version": 1,
"found": true,
"_source": {
"type": "web",
"crawl": {
"index": "webindex",
@suzuki
suzuki / firefox-developer-edition.rb
Created November 11, 2014 04:48
Homebrew Cask: Cask file for Firefox Developer Edition
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
% 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" : {