This file contains 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.analysis.analyzer.default.type: custom | |
index.analysis.analyzer.default.tokenizer: ja_tokenizer | |
index.analysis.analyzer.default.filter.0: pos_filter | |
index: | |
analysis: | |
filter: | |
pos_filter: | |
type: kuromoji_part_of_speech | |
stoptags: ["接続詞", "助動詞", "助詞", "助詞-格助詞", "助詞-格助詞-一般", "助詞-格助詞-引用", "助詞-格助詞-連語", "助詞-接続助詞", "助詞->係助詞", "助詞-副助詞", "助詞-間投助詞", "助詞-並立助詞", "助詞-終助詞", "助詞-副助詞/並立助詞/終助詞", "助詞-連体化", "助詞-副詞化", "助詞-特殊"] | |
tokenizer: |
This file contains 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 twitter | |
consumer_key **** | |
consumer_secret **** | |
oauth_token **** | |
oauth_token_secret **** | |
tag input.twitter.sampling # Required | |
timeline tracking # Required (tracking or sampling or location or userstream) | |
keyword 乃木坂,欅坂,秋元真夏,生田絵梨花,生駒里奈,伊藤かりん,伊藤純奈,伊藤万理華,井上小百合,衛藤美彩,川後陽菜,川村真洋,北野日奈子,齋藤飛鳥,斎藤ちはる,相楽伊織,桜井玲香,佐々木琴子,白石麻衣,新内眞衣,鈴木絢音,高山一実,寺田蘭世,中田花奈,中元日芽香,永島聖羅,西野七瀬,能條愛未,橋本奈々未,樋口日奈,深川麻衣,星野みなみ,堀未央奈,松村沙友理,山崎玲奈,若月佑美,渡辺みり愛,和田まあや,石森虹花,今泉佑唯,上村莉菜,尾関梨香,織田奈那,小池美波,小林由依,齋藤冬優花,佐藤詩織,志田愛佳,菅井友香,鈴本美愉,長沢菜々香,土生瑞穂,原田葵,平手友梨奈,守屋茜,米谷奈々未,渡辺梨加,渡邉理佐,長濱ねる # Optional (keyword is priority than follow_ids) | |
output_format flat # Optional (nest or flat or simple[default]) |
This file contains 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
# 詳細はこちらを参照 | |
# https://github.com/suin/iptables/blob/master/iptables.sh | |
# clear | |
iptables -F # テーブル初期化 | |
iptables -X # チェーンを削除 | |
iptables -Z # パケットカウンタ・バイトカウンタをクリア | |
# policy | |
iptables -P INPUT DROP |
This file contains 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 -X POST http://localhost:9200/_template/template_idle -H "Content-type: application/json" -d '{ | |
"template" : "logstash-*", | |
"settings": { | |
"analysis": { | |
"filter": { | |
"pos_filter": { | |
"type": "kuromoji_part_of_speech", | |
"stoptags": ["接続詞", "助動詞", "助詞", "助詞-格助詞", "助詞-格助詞-一般", "助詞-格助詞-引用", "助詞-格助詞-連語", "助詞-接続助詞", "助詞-係助詞", "助詞-副助詞", "助詞-間投助詞", "助詞-並立助詞", "助詞-終助詞", "助詞-副助詞/並立助詞/終助詞", "助詞-連体化", "助詞-副詞化", "助詞-特殊"] | |
} | |
}, |
This file contains 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
乃木坂 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 乃木坂 | ノギザカ | ノギザカ | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
欅坂 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 欅坂 | ケヤキザカ | ケヤキザカ | |
秋元真夏 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 秋元真夏 | アキモトマナツ | アキモトマナツ | |
生田絵梨花 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 生田絵梨花 | イクタエリカ | イクタエリカ | |
生駒里奈 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 生駒里奈 | イコマリナ | イコマリナ | |
伊藤かりん | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 伊藤かりん | イトウカリン | イトウカリン | |
伊藤純奈 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 伊藤純奈 | イトウジュンナ | イトウジュンナ | |
伊藤万理華 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 伊藤万理華 | イトウマリカ | イトウマリカ | |
井上小百合 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 井上小百合 | イノウエサユリ | イノウエサユリ | |
衛藤美彩 | 1288 | 1288 | * | 名詞 | 固有名詞 | * | * | * | * | 衛藤美彩 | エトウミサ | エトウミサ |
This file contains 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
乃木坂 | 乃木坂 | ノギザカ | カスタム品詞 | |
---|---|---|---|---|
欅坂 | 欅坂 | ケヤキザカ | カスタム品詞 | |
秋元真夏 | 秋元真夏 | アキモトマナツ | カスタム品詞 | |
生田絵梨花 | 生田絵梨花 | イクタエリカ | カスタム品詞 | |
生駒里奈 | 生駒里奈 | イコマリナ | カスタム品詞 | |
伊藤かりん | 伊藤かりん | イトウカリン | カスタム品詞 | |
伊藤純奈 | 伊藤純奈 | イトウジュンナ | カスタム品詞 | |
伊藤万理華 | 伊藤万理華 | イトウマリカ | カスタム品詞 | |
井上小百合 | 井上小百合 | イノウエサユリ | カスタム品詞 | |
衛藤美彩 | 衛藤美彩 | エトウミサ | カスタム品詞 |
This file contains 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
var jsforce = require('jsforce'); | |
var conn = new jsforce.Connection({}); | |
conn.login('{username}', '{password}', function(err, userInfo) { | |
conn.metadata.update('Profile', { | |
fullName:'カスタムテストユーザ', | |
loginIpRanges: [ | |
{ | |
startAddress:'0.0.0.0', | |
endAddress:'0.255.255.255' | |
}, |
This file contains 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
var jsforce = require('jsforce'); | |
var conn = new jsforce.Connection({}); | |
//var names = ['カスタムテストユーザ', 'カスタムシス管']; | |
conn.login('{username}', '{password}', function(err, userInfo) { | |
conn.query("SELECT Name FROM Profile", function(err, result) { | |
if (err) { return console.error(err); } | |
var names = result.records.map(function(record){ return record.Name }); | |
var i, j, temparray, chunk = 10; | |
for (i = 0, j = names.length; i < j; i+=chunk) { | |
temparray = names.slice(i,i+chunk); |
This file contains 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
Blob cryptoKey = Crypto.generateAesKey(128); | |
Blob iv = Blob.valueOf('0123456789012345'); | |
System.debug(EncodingUtil.base64encode(cryptoKey)); | |
Blob data = Blob.valueOf('TestTest'); | |
Blob encryptedData = Crypto.encrypt('AES128', cryptoKey, iv, data); | |
System.debug(EncodingUtil.base64encode(encryptedData)); | |
//Blob decryptedData = Crypto.decrypt('AES128', cryptoKey, encryptedData); | |
//System.debug(decryptedData.toString()); |
This file contains 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
var jsforce = require('jsforce'); | |
var conn = new jsforce.Connection({ | |
loginUrl : 'https://login.salesforce.com' | |
}); | |
conn.login("{username}", "{password}", function(err, userInfo) { | |
conn.sobject('hoge__c') | |
.find({}) | |
.destroy(function(err, rets) { | |
if (err) { return console.error(err); } | |
console.log(rets); |