Skip to content

Instantly share code, notes, and snippets.

View takeyuweb's full-sized avatar

Yuichi Takeuchi takeyuweb

View GitHub Profile
@takeyuweb
takeyuweb / file0.txt
Last active January 18, 2018 07:11
CRuby以外のRuby実装について調べたよ ref: https://qiita.com/takeyuweb/items/ea7b42746152f03efdaa
yuichi@yuichi-ws:~/truffleruby/graalvm-0.29> jre/languages/ruby/bin/ruby -v
truffleruby 0.29, like ruby 2.3.3 <Java HotSpot(TM) 64-Bit Server VM 1.8.0_141-b15 with Graal> [linux-x86_64]
authenticate :user, lambda { |u| u.admin? } do
mount Sidekiq::Web, at: 'sidekiq', as: :sidekiq
mount PgHero::Engine, at: 'pghero', as: :pghero
end
# pubtra2freee
# Pubtraで抽出・エクスポートした交通系SF利用明細CSVをfreeeで読み込みやすいように加工するスクリプトやっつけ版。
#
# License: Public Domain (Unlicense)
#
# 配置
# pubtra2freee.rb
# 2015/
# 01.csv ← pubtraで出力
# 02.csv ← pubtraで出力
@takeyuweb
takeyuweb / Berksfile
Created September 12, 2014 13:40
Vagrant Rails開発環境 on Windows
source 'http://api.berkshelf.com'
# from opscode-cookbooks
cookbook 'nodejs'
cookbook 'yum'
cookbook 'mysql'
cookbook 'memcached'
# from GitHub
cookbook 'rbenv', github: 'fnichol/chef-rbenv'
# User cook books
cookbook 'base', path: 'site-cookbooks/base'
@takeyuweb
takeyuweb / 0
Last active December 16, 2015 03:18
/etc/init.d/god (with rbenv) & samples イベント監視を使う場合は http://blog.takeyu-web.com/entry/2013/02/05/013112 (CentOS)
# vi /etc/init.d/god
# mkdir /etc/god
# vi /etc/god/mt.god
# vi /etc/god/mt-task.god
# service god start
/usr/local/rbenv/shims/god -l /var/log/god.log -P /var/run/god.pid
god: loading /etc/god/mt.god ...
Sending 'load' command with action 'leave'
The following tasks were affected: