Skip to content

Instantly share code, notes, and snippets.

Working from home

KUOKA Yusuke mumoshu

Working from home
Block or report user

Report or block mumoshu

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
#!/usr/bin/env bash
set -e
if eksctl get cluster -f $FILE >/dev/null 2>&1; then
# See
eksctl update cluster -f $FILE
eksctl utils update-kube-proxy
eksctl utils update-aws-node
eksctl utils update-coredns
View sysdig
set -e
if [ ! -z "$DEBUG" ]; then
set -vx
kubectl get po -a --all-namespaces | grep -v ^NAME | fzf | awk '{ print $1, $2 }' > ns-pod
mumoshu / action.yml
Created Oct 8, 2019
GitHub Actions v2 Gotcha: It seems like we're unable to use ${{ inputs.. }} from within `runs.using` of action.yml :(
View action.yml
name: 'VariantRun'
description: 'Run Variant task defined in your Variantfile'
description: 'Docker image for Variant containers'
required: false
default: 'Dockerfile'
using: 'docker'
image: '${{ inputs.image }}'
View helm-diff-helm3-build-error.log
$ HELM_HOME=$HOME/Library/helm make install
+ go vet ./pkg/...
go: warning: "./pkg/..." matched no packages
no packages to vet
+ go vet ./cmd/...
mumoshu / build.sbt
Created Jan 10, 2012
DES and AES encryption in Scala
View build.sbt
name := "DES and AES encryption in Scala"
version := "1.0"
scalaVersion := "2.9.1"
libraryDependencies += "commons-codec" % "commons-codec" % "1.6"
mumoshu / helmify-kustomize
Last active Aug 1, 2019
Run `helmify-kustomize build $chart $env` in order to generate a local helm chart at `$chart/`, from kustomize overlay at `${chart}-kustomize/overlays/$env`
View helmify-kustomize
#!/usr/bin/env bash
build() {
mumoshu /
Last active Jul 2, 2019
helmfile + flagger + istio + chatops demo

Generate a random password for verifying HTTP requests from GitHub to your WebHook endpoint:

openssl rand -hex 20 > /path/to/hook_secret

Decide the GitHub repository named for the demo:

ORG=mumoshu # Replace with your org name!
View goweight.helmfile.log
$ goweight ./
5.7 MB
3.8 MB net/http
3.3 MB runtime
1.9 MB
1.8 MB
1.8 MB net
1.8 MB crypto/tls
1.7 MB
1.5 MB
mumoshu / build.sbt
Created Jan 10, 2012
DES encryption in Scala
View build.sbt
name := "DES encryption in Scala"
version := "1.0"
scalaVersion := "2.9.1"
libraryDependencies += "commons-codec" % "commons-codec" % "1.6"
mumoshu / read-a-file-using-stream.scala
Created Dec 9, 2011
Read a file using Stream (Scala)
View read-a-file-using-stream.scala
case class Chunk(length: Int, bytes: Array[Byte])
def fileContentStream(fileIn: FileInputStream): Stream[Chunk] = {
val bytes = Array.fill[Byte](1024)(0)
val length =
Chunk(length, bytes) #:: fileContentStream(fileIn)
You can’t perform that action at this time.