Skip to content

Instantly share code, notes, and snippets.

View sachin21's full-sized avatar
💭
Feel free to email to me.

Satoshi Ohmori sachin21

💭
Feel free to email to me.
View GitHub Profile
@sachin21
sachin21 / echo.sd.rb
Created January 2, 2016 11:51
echo-sd's Formula for Homebrew
class EchoSd < Formula
desc "Echo 'sudden death' message"
homepage "https://fumiyas.github.io/2013/12/25/echo-sd.sh-advent-calendar.html"
url "https://raw.githubusercontent.com/fumiyas/home-commands/master/echo-sd"
sha256 "42f333ec81642f3b6a3a5fb59ab35f526dd7c86b77cdb8a420ba73eaf3846652"
def install
bin.install "echo-sd"
end
end
@sachin21
sachin21 / update_installing_tools
Last active January 2, 2021 14:51
個人で使ってるツールの一括アップデート
#!/usr/bin/env zsh
function update_it() {
local tool_path="$1"
local target="$2"
pushd "$tool_path" &> /dev/null
[ ! -e .git ] && echo " x [Warning] $target is not git repository" && popd &> /dev/null && return 0;
@sachin21
sachin21 / richpager
Created April 29, 2015 14:29
richpagerでのエラー
File "<stdin>", line 3
print '\n'.join(styles)
^
SyntaxError: invalid syntax
@sachin21
sachin21 / gist:bb63009559c185bc8ced
Created December 31, 2014 14:01
pecoをvim bindで使う
{
"Keymap": {
"C-j": "peco.SelectPrevious",
"C-k": "peco.SelectNext",
"C-c": "peco.Cancel",
"C-j": "peco.SelectDown",
"C-k": "peco.SelectUp",
"C-f": "peco.ScrollPageDown",
"C-b": "peco.ScrollPageUp"
}