Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Feel free to email to me.

Satoshi Ohmori sachin21

💭
Feel free to email to me.
View GitHub Profile
View gist:bb63009559c185bc8ced
{
"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"
}
@sachin21
sachin21 / richpager
Created Apr 29, 2015
richpagerでのエラー
View richpager
File "<stdin>", line 3
print '\n'.join(styles)
^
SyntaxError: invalid syntax
@sachin21
sachin21 / update_installing_tools
Last active Jan 2, 2021
個人で使ってるツールの一括アップデート
View update_installing_tools
#!/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 / echo.sd.rb
Created Jan 2, 2016
echo-sd's Formula for Homebrew
View echo.sd.rb
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 / agvim.fish
Created Jan 5, 2016
agvim for fishshell
View agvim.fish
function agvim
vim (ag $argv | peco --query "$LBUFFER" | awk -F : '{print "-c " $argv[2] " " $argv[1]}')
end
@sachin21
sachin21 / allunigem
Last active Jan 18, 2016
全てのgemをアンインストールする
View allunigem
gem list --no-versions | grep "^[a-z]" | grep bunlder -v | grep test-unit -v | grep rdoc -v | grep rake -v | grep psych -v | grep io-console -v | grep json -v | grep bigdecimal -v | grep minitest -v | xargs gem uninstall -aIx
@sachin21
sachin21 / sachin21-node-build
Last active Dec 24, 2020
Programming Language Installers
View sachin21-node-build
#!/usr/bin/env bash
set -e
export MAKE_OPTS="-j $(nproc)"
for TARGET_VERSION in $@; do
if nodenv install $TARGET_VERSION && nodenv global $TARGET_VERSION; then
npm install --global npm@latest
npm install --global neovim
@sachin21
sachin21 / mother's day.md
Last active Sep 26, 2016
2017年度版 母の日 プレゼント候補
View mother's day.md

候補一覧

  • 紅茶
  • マグカップ
  • 写真入りマグカップ
@sachin21
sachin21 / mikutter
Last active Nov 9, 2016
mikutter startup script
View mikutter
#!/usr/bin/env zsh
eval "$(rbenv init - zsh)"
export MIKUTTER=$HOME/Projects/github.com/mikutter/mikutter
mstart() {
echo "Starting mikutter..."
ruby $MIKUTTER/mikutter.rb &> /tmp/MIKU_LOG &
ps aux | fgrep mikutter.rb | fgrep -v grep | awk '{print $2}' > /tmp/MIKU_PID
@sachin21
sachin21 / laco.rb
Created Oct 12, 2016 — forked from toshia/laco.rb
らこらこらこ〜するmikutterプラグイン
View laco.rb
Plugin.create :laco do
command(:laco,
name: 'らこらこらこ〜w',
condition: lambda{ |opt| true },
visible: true,
role: :timeline) do |opt|
Service.primary.update(message: "らこらこらこ〜w")
end
end