Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Yoichi Kawasaki yokawasa

🎯
Focusing
View GitHub Profile
@yokawasa
yokawasa / cfn-lint.yaml
Last active Dec 25, 2020
GitHub Actions - cloudformation lint actions performance comparision
View cfn-lint.yaml
name: "cloudformation lint test action"
on:
push:
branches:
- test-cfn-lint
paths:
- 'cfn/*'
jobs:
cfn-lint-test01:
@yokawasa
yokawasa / noops-meetup-online0-ovice.md
Last active Dec 15, 2020
NoOps Meetupオンライン会場 (oVice)への入場方法
View noops-meetup-online0-ovice.md

NoOps Meetup Online#0はoViceのイベント専用スペースで発表ならびに交流を行います。これはそのオンライン会場(oVice)の入場方法になります。 なお、配信用URLは事前に参加者の皆様にconnpassのメッセージ機能によりお送りしております。

  1. connpass登録名を入力いただき入場ボタンを押してください

  2. ベルのイメージをクリックください。これでイベント管理者(イベント会場参加者もふくむ)に入室希望であることが伝えられます。

  3. イベント管理者が入室を許可までお待ち下さい

@yokawasa
yokawasa / show-node-label-of.sh
Created Jul 6, 2020
kubectl util script - Show specific label info with node info
View show-node-label-of.sh
#!/usr/bin/env bash
LABEL=$1
IFS=$'\n'
for l in $(kubectl get node --show-labels |awk '{print $1 " " $2 " " $6}' | tail -n +2)
do
n=$(echo $l | awk '{print $1}')
s=$(echo $l | awk '{print $2}')
ng=$(echo $l | awk '{print $3}' | awk -v label=${LABEL} '
BEGIN{ FS = "," }
{
@yokawasa
yokawasa / gha-workflow-conclusion.yml
Last active Jun 16, 2020
GitHub Actions Workflow Conclusion Test YAML
View gha-workflow-conclusion.yml
on:
push:
branches:
- workflow-conclusion
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: exit 0
@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 / 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