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 / pork_don.md
Last active December 6, 2018 12:00
アプリコットジャム豚丼

2食分豚丼

レシピ

  • 豚: 400g
  • 玉ねぎ: 一個
  • みりん: お玉一杯
  • 日本酒: お玉一杯
  • 醤油: お玉一杯
  • 杏じゃむ(アプリコット): お玉一杯
  • にんにくみじん切り: 一欠片
@sachin21
sachin21 / keybase.md
Created January 21, 2018 08:43
Keybase - Public key crypto for everyone, publicly auditable proofs of identity.

Keybase proof

I hereby claim:

  • I am sachin21 on github.
  • I am sachin21 (https://keybase.io/sachin21) on keybase.
  • I have a public key ASBITpm71lF-8pxvZC_845E5bUu4fM93cs4LyX88UATJKAo

To claim this, I am signing this object:

@sachin21
sachin21 / benchmark.rb
Created April 15, 2017 11:21
Faker VS FFaker benchmarks
require 'benchmark/ips'
require 'faker'
require 'ffaker'
Benchmark.ips do |x|
x.report('faker') { Faker::Name.name }
x.report('ffaker') { FFaker::Name.name }
x.compare!
@sachin21
sachin21 / gist:8439c47258435c7bc2c93936851ee1ec
Created January 4, 2017 13:42
twitter-textの方のtld_lib.ymlを取ってくると上のgemよりdirectoryがないためエラーになってる
/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
@sachin21
sachin21 / .hyper.js
Created December 3, 2016 23:30
A Hyper's configuration file
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 / laco.rb
Created October 12, 2016 01:39 — forked from toshia/laco.rb
らこらこらこ〜するmikutterプラグイン
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 November 9, 2016 06:42
mikutter startup script
#!/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 / sachin21-node-build
Last active April 19, 2023 06:28
Programming Language Installers
#!/usr/bin/env bash
set -e
for TARGET_VERSION in $@; do
if MAKE_OPTS="-j $(nproc)" MAKEOPTS="-j $(nproc)" nodenv install $TARGET_VERSION && nodenv global $TARGET_VERSION; then
npm install --global npm@latest
npm install --global neovim
@sachin21
sachin21 / allunigem
Last active January 18, 2016 07:54
全てのgemをアンインストールする
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 / agvim.fish
Created January 5, 2016 12:10
agvim for fishshell
function agvim
vim (ag $argv | peco --query "$LBUFFER" | awk -F : '{print "-c " $argv[2] " " $argv[1]}')
end