Skip to content

Instantly share code, notes, and snippets.

@cynipe
cynipe / mitchellh_cli.go
Created January 17, 2016 03:07
Golang CLI Example
package main
import (
"os"
"fmt"
"github.com/mitchellh/cli"
)
func main() {
@cynipe
cynipe / github-flow.ja.md
Last active February 26, 2016 01:35 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップで git-flow についてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

@cynipe
cynipe / install_tmux.sh
Last active July 12, 2018 03:13 — forked from lowply/install_tmux.sh
A shell script to install tmux-2.5 and its dependencies from tarball (Only for CentOS, Ubuntu and Amazon Linux)
#!/bin/bash
# Install tmux from source
# Jul 12th, 2016 / [email protected]
# Sep 29th, 2016 / cynipe : Added Amazon Linux support and some fixes
set -ex
[ -f /etc/os-release ] && . /etc/os-release || { echo "Could not find /etc/os-release"; exit 1; }
@cynipe
cynipe / gist:efc52f079fbf1b84ce5d27e523722039
Created September 3, 2019 04:55
maven-3.6.2's sha512sum does not match
```
❯ curl -fsSL -o /tmp/apache-maven-3.6.2-bin.tar.gz https://www.apache.org/dist/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz
❯ sha512sum /tmp/apache-maven-3.6.2-bin.tar.gz
d941423d115cd021514bfd06c453658b1b3e39e6240969caf4315ab7119a77299713f14b620fb2571a264f8dff2473d8af3cb47b05acf0036fc2553199a5c1ee /tmp/apache-maven-3.6.1-bin.tar.gz
❯ curl -sSL https://www.apache.org/dist/maven/maven-3/3.6.2/binaries/apache-maven-3.6.2-bin.tar.gz.sha512
235198b48d29fe2f2394f2607a9a1637acfd0286beacb974c566f7f36ac6c469871a0db287539b2b62e6322d7423f586949e41cbbfea330fe03bf690688f6fd7⏎
```
@cynipe
cynipe / wezterm.lua
Created December 25, 2022 16:40
weztermおためし
local wezterm = require 'wezterm'
wezterm.on('open_in_nvim', function(window, pane)
local pane_buffer = pane:get_lines_as_text(10000)
local name = os.tmpname()
local file = io.open(name, 'w+')
file:write(pane_buffer)
file:flush()
file:close()
window:perform_action(