Skip to content

Instantly share code, notes, and snippets.

View hidepin's full-sized avatar

hidepin hidepin

View GitHub Profile
@hidepin
hidepin / scripted_fields.md
Last active January 11, 2020 02:40
kibana scripted fields
if (doc['hulft.log.reply.raw'].value != null) {
  def result = doc['hulft.log.reply.raw'].value;
  int lastIndex = result.lastIndexOf("処理結果:");
  if (lastIndex > 0) {
    return Integer.parseInt(result.substring(lastIndex+5));
  }
}

return -1;
@hidepin
hidepin / vscode.md
Last active September 22, 2019 12:12
vscode

{
    "python.pythonPath": "venv/bin/python",
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "python.formatting.provider": "black",
    "editor.formatOnPaste": false,
    "python.linting.flake8Args": ["--max-line-length", "88"],
 "files.watcherExclude": {

chat

注意事項

とにかくオープンに使う

  • チャネルはpublicだけを許容し、privateチャネルは禁止
    • 情報共有が一部メンバーに閉じてしまうことを防ぐ
    • 仕事の情報を誰もが参照できることで生産性があがる
{
  "script": {
    "inline": "doc['system.filesystem.used.bytes'].value * 2",
    "lang": "painless"
  }
}

mkdir /backup chown postgres:postgres /backup su - postgres createdb -U postgres test

# psql -U postgres test
psql (9.6.10)
"help" でヘルプを表示します.
@hidepin
hidepin / hulft
Last active October 7, 2018 11:32
- 非クラスタ環境
```
SERIAL=3080000040491
PRODUCTKEY=GUUSSADP7HWRSCXZPRJ7SADTA
HULPATH=/opt/ap/share/hulft/etc
HULEXEP=/opt/ap/lenv/hulft/bin
CS4TRNSFR=UTF-8
HULLANG=JPN
INSTALLATIONMETHOD=NEW

find /usr/share/doc/pg_statsinfo-3.3.0/ -name "*.html" -exec echo {} ; -exec tidy -utf8 -eq {} ; 2>&1 | less

find /usr/share/httpd/manual/ -name "*.css" | xargs csslint

このログはなに?

Sep 23 23:36:43 iscsiinitiator01 <mail.info> postfix/postfix-script[12133]:the Postfix mail system is running: PID: 30525
Sep 23 23:36:53 iscsiinitiator01 <mail.info> postfix/postfix-script[12607]:the Postfix mail system is running: PID: 30525
Sep 23 23:37:04 iscsiinitiator01 <mail.info> postfix/postfix-script[13081]:the Postfix mail system is running: PID: 30525
Sep 23 23:37:14 iscsiinitiator01 <mail.info> postfix/postfix-script[13564]:the Postfix mail system is running: PID: 30525
Sep 23 23:37:25 iscsiinitiator01 <mail.info> postfix/postfix-script[14037]:the Postfix mail system is running: PID: 30525
Sep 23 23:37:35 iscsiinitiator01 <mail.info> postfix/postfix-script[14511]:the Postfix mail system is running: PID: 30525
Sep 23 23:37:46 iscsiinitiator01 <mail.info> postfix/postfix-script[14986]:the Postfix mail system is running: PID: 30525