- スライド版: https://sue445.github.io/megurorb-02/#/
- ブログ版: http://sue445.hatenablog.com/entry/2017/04/21/104619
自作OSS以外だと最近 Padrino にIssueやPR投げていました
NoMethodError - undefined method `indifferent_params' with sinatra v2.0.0
# via. https://github.com/itamae-kitchen/itamae/blob/v1.9.3/ci/destroy_old_droplets.rb | |
require 'net/https' | |
require 'json' | |
require 'time' | |
http = Net::HTTP.new("api.digitalocean.com", 443) | |
http.use_ssl = true | |
res = http.start do | |
http.get("/v2/droplets", "Authorization" => "Bearer #{ENV['DIGITALOCEAN_ACCESS_TOKEN']}") |
# `rubocop --auto-correct --only COP` and `git commit` | |
# Usage: ruby rubocop_auto_correct_commit.rb | |
require "json" | |
DEFAULT_ORDER = 100 | |
# --auto-correctする時の実行順(数字が小さい方が先に実行される) | |
COP_ORDERS = { | |
# Style/UnneededPercentQはStyle/StringLiteralsのようにシングルクオーテーション優先かダブルクオーテーション優先のようなconfigがない |
$ dig precure.ml | |
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.4 <<>> precure.ml | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 31687 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 |
# Gemfile中のgemの名前だけ取り出して標準出力に書き出す | |
# | |
# 使い方 | |
# ruby parse_gemfile.rb /path/to/gemfile | |
# | |
# 複数のgemfileから被ってるのが多い順に表示する | |
# ruby parse_gemfile.rb *.gemfile | sort | uniq -c | sort -nr | |
# rails newした時にデフォルトで入ってるgemは除外する | |
EXCLUDE_GEMS = %w( |
自作OSS以外だと最近 Padrino にIssueやPR投げていました
NoMethodError - undefined method `indifferent_params' with sinatra v2.0.0
td-agent: | |
plugin: | |
fluent-plugin-secure-forward: "0.4.3" | |
fluent-plugin-multiprocess: "0.2.1" | |
fluent-plugin-forest: "0.3.0" | |
fluent-plugin-parser: "0.6.0" | |
fluent-plugin-record-reformer: "0.8.0" |
curl -s https://rubicure.herokuapp.com/girls.json | jq -r ".[].girl_name" | say |
Precure.select{ |series| series.started_date.month == Date.today.month && series.started_date.day == Date.today.day }.map(&:title) | |
#=> ["ハピネスチャージプリキュア!"] |