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 / 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 / mother's day.md
Last active Sep 26, 2016
2017年度版 母の日 プレゼント候補
View mother's day.md

候補一覧

  • 紅茶
  • マグカップ
  • 写真入りマグカップ
@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
@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 / .hyper.js
Created Dec 3, 2016
A Hyper's configuration file
View .hyper.js
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 15,
// font family with optional fallbacks
fontFamily: 'ricty',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.75)',
@sachin21
sachin21 / gist:8439c47258435c7bc2c93936851ee1ec
Created Jan 4, 2017
twitter-textの方のtld_lib.ymlを取ってくると上のgemよりdirectoryがないためエラーになってる
View gist:8439c47258435c7bc2c93936851ee1ec
/home/sachin21dev/.rbenv/versions/2.3.1/lib/ruby/2.3.0/psych.rb:471:in `initialize': No such file or directory @ rb_sysopen - /home/sachin21dev/Projects/github.com/mikutter/mikutter/vendor/bundle/ruby/2.3.0/gems/twitter-text-1.14.3/lib/assets/tld_lib.yml (Errno::ENOENT)
from /home/sachin21dev/.rbenv/versions/2.3.1/lib/ruby/2.3.0/psych.rb:471:in `open'
from /home/sachin21dev/.rbenv/versions/2.3.1/lib/ruby/2.3.0/psych.rb:471:in `load_file'
from /home/sachin21dev/Projects/github.com/mikutter/mikutter/vendor/bundle/ruby/2.3.0/gems/twitter-text-1.14.3/lib/twitter-text/regex.rb:29:in `<class:Regex>'
from /home/sachin21dev/Projects/github.com/mikutter/mikutter/vendor/bundle/ruby/2.3.0/gems/twitter-text-1.14.3/lib/twitter-text/regex.rb:8:in `<module:Twitter>'
from /home/sachin21dev/Projects/github.com/mikutter/mikutter/vendor/bundle/ruby/2.3.0/gems/twitter-text-1.14.3/lib/twitter-text/regex.rb:3:in `<top (required)>'
from /home/sachin21dev/Projects/github.com/mikutter/m