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
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
@yokawasa
yokawasa / quickstart-v2-dotnetcore-functions.md
Created Apr 10, 2019
Quickstart V2 dotnetCore Functions
View quickstart-v2-dotnetcore-functions.md

Quickstart V2 dotnetCore Functions

Create a dotnetCore functions

  • 1 Functions project
    • Create a project using VSCode UI
  • 2 Create functions from templates
    • Create a functions in the project using VSCode UI

About function.json

You may expect that a new folder is created inside the app function folder with the name of the function and a class file for the function and a function.json file. But it's not. Actually, a class file is created not in its own folder and there is no function.json file as well. An interesting is that the FunctionName attribute on the Run method and the HttpTrigger attribute on the HttpRequest in the Run method’s signature.

@yokawasa
yokawasa / quickstart-v2-java-functions.md
Last active Apr 10, 2019
Quickstart V2 Java Functions
View quickstart-v2-java-functions.md

Quickstart V2 Java Functions

Prerequisites

  • JDK version 1.8.
# Mac 
brew tap caskroom/versions
brew cask install java8
# JAVA_HOME
export JAVA_HOME=/usr/libexec/java_home
You can’t perform that action at this time.