Skip to content

Instantly share code, notes, and snippets.

View naotookuda's full-sized avatar

Naoto Okdua naotookuda

  • Archway Design Office Inc.
  • Tokyo
  • X @nokuda
View GitHub Profile
@naotookuda
naotookuda / refreash_helm.sh
Created November 17, 2017 00:53
How to refresh "helm" cache ?
# !/bin/bash
# Remove all files in these directories.
rm -rf ~/.helm/cache/archive/*
rm -rf ~/.helm/repository/cache/*
# Refreash repository configurations
helm repo update
#That's all.
#If you "helm search" next time, you can find newest stable charts in repository.
@naotookuda
naotookuda / get_helmcharts.sh
Created November 17, 2017 00:54
How to get "helm" charts source code ?
# !/bin/bash
helm fetch --untar ${charts}
@naotookuda
naotookuda / .zshrc
Last active February 29, 2020 02:16
zsh configurations
# evironment variables
export LANG=ja_JP.UTF-8
# history settings
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
# remove depulicate history
setopt hist_ignore_dups
setopt hist_ignore_all_dups
@naotookuda
naotookuda / Makefile
Last active April 15, 2024 05:56
docker-compose Kafka cluster and mongodb
.PHONY: up
up:
LOCAL_IP=$(shell ifconfig en0 | grep inet | grep -v inet6 | awk '{print $$2}') docker-compose up -d
.PHONY: down
down:
docker-compose dow
@naotookuda
naotookuda / main.go
Created April 9, 2019 00:48
Handle OS signal on golang
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
)
// ExitCode is process exit code to os