Skip to content

Instantly share code, notes, and snippets.

View gumuncle's full-sized avatar

Yusuke FURUKAWA gumuncle

View GitHub Profile
@gumuncle
gumuncle / blog.md
Last active August 11, 2023 01:07
blog2

test2

@gumuncle
gumuncle / blog.md
Last active August 11, 2023 01:07
blog

test hogehoge

// [![](https://mermaid.ink/img/pako:eNpNj00LwjAMhv9KyNmC-0Kt4MmjJ732EtbMDdZtzPYgY__dVCe0hzZ58ryQLliPllHjc6aphdv9bAaQs1cKClDqkslVypsng0p6-INMQJZHUmxEGogRKBNwSo1CwDdSbUB0OKRGBMefgTt0PDvqrKy5xLFB37Jjg1pKyw2F3hs0wyoqBT8-3kON2s-BdxgmS56vHckHHeqG-hevH_QgPiQ?type=png)](https://mermaid.live/edit#pako:eNpNj00LwjAMhv9KyNmC-0Kt4MmjJ732EtbMDdZtzPYgY__dVCe0hzZ58ryQLliPllHjc6aphdv9bAaQs1cKClDqkslVypsng0p6-INMQJZHUmxEGogRKBNwSo1CwDdSbUB0OKRGBMefgTt0PDvqrKy5xLFB37Jjg1pKyw2F3hs0wyoqBT8-3kON2s-BdxgmS56vHckHHeqG-hevH_QgPiQ)
graph LR;
0-- 3 -->1 --4-->2;
0-- 5--> 2;
1-- 12--> 3;
2-- 4--> 4;
2-- 9--> 3;
3-- 2--> 5;
4-- 7--> 3;
4-- 8--> 5;
@gumuncle
gumuncle / scrapbox_create_diary_template.py
Created August 4, 2020 15:59
scrapbox_create_diary_template.py
from urllib.parse import urlencode
import requests
import datetime
def str_to_urlencode(y, m, d):
today = datetime.date(int(y), int(m), int(d))
yesterday = today - datetime.timedelta(days=1)
tomorrow = today + datetime.timedelta(days=1)
yesterday = yesterday.strftime("%Y%m%d").zfill(2)
tomorrow = tomorrow.strftime("%Y%m%d").zfill(2)
find . -type f -exec md5sum "{}" + | sort > checksum.list
tmux でbottomに空きを削除
~/.config/gtk-3.0/gtk.css
1 VteTerminal,
2 vte-terminal,
3 TerminalScreen {
4 padding: 0px;
5 margin: 0px;
6 -VteTerminal-inner-border: 0px;
7 }
t = lambda x: lambda y: x
t1 = lambda x: lambda y: x
f = lambda x: lambda y: y
f2 = lambda x: lambda y: y
b = lambda z: t if z else f
b2 = lambda z: t1 if z else f2
'''
Z = lambda f:
#
# Fancy two-line prompt with git integration
#
# ┌───=[ specious :: sharp -( 0 )-[ ~ ]-( master )
# └──(
#
parse_git_dirty () {
[[ $(git status 2> /dev/null | tail -1) != "nothing to commit, working tree clean" ]] && echo "*"
}
@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: