Skip to content

Instantly share code, notes, and snippets.

View gumuncle's full-sized avatar

Yusuke FURUKAWA gumuncle

View GitHub Profile
@gumuncle
gumuncle / k8s-pi.md
Created March 24, 2018 15:35 — forked from alexellis/k8s-pi.md
K8s on Raspbian

Kubernetes on (vanilla) Raspbian Lite

Yes - you can create a Kubernetes cluster with Raspberry Pis with the default operating system called Raspbian. This means you can carry on using all the tools and packages you're used to with the officially-supported OS.

Pre-reqs:

  • You must use an RPi 2 or 3 for use with Kubernetes
  • I'm assuming you're using wired ethernet (Wi-Fi also works, but it's not recommended)

Master node setup

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@gumuncle
gumuncle / tmux.md
Created January 16, 2018 15:48 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@gumuncle
gumuncle / Dockerfile
Last active October 4, 2017 17:22 — forked from ryanbauman/Dockerfile
FROM centos:6
ARG UID=1000
ARG GID=1000
ARG USERNAME=yusuke
ARG GROUP=yusuke
RUN groupadd \
--gid $GID \
linuxusers
@gumuncle
gumuncle / rec_radiko.sh
Created September 12, 2017 22:52 — forked from matchy256/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
playerurl=http://radiko.jp/apps/js/flash/myplayer-release.swf
playerfile="/tmp/player.swf"
keyfile="/tmp/authkey.png"
@gumuncle
gumuncle / borders.patch
Created October 31, 2012 00:48 — forked from silenvx/borders.patch
tmuxのペインの境目に使われる罫線を書き換えただけのpatch
diff -Narup tmux-1.6.orig/tty-acs.c tmux-1.6/tty-acs.c
--- tmux-1.6.orig/tty-acs.c 2012-10-15 00:13:51.729160450 +0900
+++ tmux-1.6/tty-acs.c 2012-10-15 00:35:51.770801087 +0900
@@ -41,21 +41,21 @@ const struct tty_acs_entry tty_acs_table
{ 'g', "\302\261" },
{ 'h', "\342\226\222" },
{ 'i', "\342\230\203" },
- { 'j', "\342\224\230" },
- { 'k', "\342\224\220" },
- { 'l', "\342\224\214" },