Skip to content

Instantly share code, notes, and snippets.

@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(
@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 / 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 / lowply@gmail.com
# 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 / 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 / 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 / Dockerfile
Created June 15, 2015 09:54
俺々R環境
FROM r-base
RUN apt-get -y update \
&& apt-get -y install vim build-essential default-jdk default-jre \
&& R CMD javareconf \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/
RUN install2.r --error RJDBC
@cynipe
cynipe / SIDECI.md
Created June 11, 2015 10:09
sideciのドキュメントを読みやすくしたった

sideci.ymlファイルをレポジトリのルートディレクトリに配置頂くことで、SideCIの自動コードレビュー機能の設定を行うことが出来ます。 各機能のオン・オフはSideCIの画面上から行えます。また、各機能はカスタマイズなどはそれぞれの機能に準じます。 各機能がサポートしていないカスタマイズ・設定などについてのみ、sideci.ymlファイルで設定することが可能です。

sideci.ymlファイルをサポートしているのは以下の2つの機能です。

  • PHP_CodeSniffer
  • PHP Mess Detector

sideci.ymlの作成

@cynipe
cynipe / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@cynipe
cynipe / README.md
Last active August 29, 2015 14:16
Github流Makeおじさん(Rubyバージョン)

Github流Makeおじさん(Rubyバージョン)

プロジェクトディレクトリに script ディレクトリを掘ってそこに bootstrap, specs を置いて使う感じ。 以降は script/specs と叩けば確実に全員同じバージョンのライブラリを使ってテストすることが保証される。

なぜGithub流?

boxen/our-boxen, boxen/puppet-xxxx辺りのリポジトリで見かけた手法でおそらくGithub社内での一般的な流儀になっているっぽいから。 Makefileじゃないのはshならどの環境でも入ってるしょ絶対。っていうのがあるからなのかなーと思ってる。

@cynipe
cynipe / ugid-mappng.md
Last active August 29, 2015 14:16
WindowsのNFSを使った際のuid,gidマッピング