Skip to content

Instantly share code, notes, and snippets.

:octocat:
Please mention me @yokawasa if you need a quick response from me

Yoichi Kawasaki yokawasa

:octocat:
Please mention me @yokawasa if you need a quick response from me
Block or report user

Report or block yokawasa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yokawasa
yokawasa / fluentd_configuration.md
Last active Sep 3, 2019
Fluentd Configuration Memo
View fluentd_configuration.md

fluentd configurations

condition where buffer chunk is flushed

(1) flush_interval is configured

  • buffer chunk size reaches chunk_limit_size * chunk_full_threshold
  • flush_interval after buffer chunk is created( it'll be forcely flushed event if buffer chunk size doesn't reach chunk_limit_size * chunk_full_threshold)

(2) flush_interval is NOT configured

  • buffer chunk size reaches chunk_limit_size * chunk_full_threshold
  • after timekey + timekey_wait
@yokawasa
yokawasa / aks-cheat-sheet.md
Created Aug 31, 2019
Azure Kubernetes Services Cheat Sheet
View aks-cheat-sheet.md
View maven-fundamentals.md

Maven Fundamentals

Configurations

  • settings.xml
    • The settings element in the settings.xml file contains elements used to define values which configure Maven execution in various ways, like the pom.xml, but should not be bundled to any specific project, or distributed to an audience. These include values such as the local repository location, alternate remote repository servers, and authentication information.
    • config dir
      • global settings: ${maven.home}/conf/settings.xml
      • user settings: ${user.home}/.m2/settings.xml
    • ref: https://maven.apache.org/settings.html
  • pom.xml
@yokawasa
yokawasa / setup-composer
Created Jun 26, 2019
A script to setup PHP composer
View setup-composer
#!/bin/sh
set -e -x
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar $HOME/bin/composer
@yokawasa
yokawasa / elastic-stack-on-azure.md
Last active Apr 23, 2019
Quick Start Elastic Stack on Azure
View elastic-stack-on-azure.md
@yokawasa
yokawasa / quickstart-v2-nodejs-functions.md
Created Apr 10, 2019
Quickstart V2 Node.js Functions
View quickstart-v2-nodejs-functions.md

Quickstart V2 Node.js Functions

Prerequisites

 $ node -v
 v11.1.11
 # Need to downgrade node version
 $ brew unlink node
 $ brew install node@10
You can’t perform that action at this time.