Skip to content

Instantly share code, notes, and snippets.

View mumoshu's full-sized avatar
🏠
Working from home

Yusuke Kuoka mumoshu

🏠
Working from home
View GitHub Profile
@mumoshu
mumoshu / setup.sh
Last active August 22, 2022 09:58 — forked from h3poteto/setup.sh
Setup Kubernetes using kubeadm. In case you provided a wrong control-plane node address, run `sudo kubeadm reset` and try again.
#!/bin/bash
set -e
if [ $# -ne 1 ]; then
echo "controle-plane-endpoint is required" 1>&2
exit 1
fi
CONTROLE_PLANE_ENDPOINT=$1
@mumoshu
mumoshu / tmux-git-repo
Last active December 27, 2017 02:48 — forked from mechairoi/tmux-ghq
#!/usr/bin/env bash
# Put followings your .tmux.conf
#
# bind ^T run-shell tmux-ghq
#
set -e
fzfcmd="fzf-tmux -d${FZF_TMUX_HEIGHT:-40%} -e +s"
function getClass(o) {
var res;
return o == null
? o === null ? "null" : "undefined"
: (res = o.constructor
.toString()
.match(/^function ([^\(]+)|object (\w+)/))
&& res[1] || res[2];
}