Skip to content

Instantly share code, notes, and snippets.

@sukechannnn
sukechannnn / bugsnag_sidekiq_args.rb
Created December 11, 2019 04:35
This script gets sidekiq arguments from an error event of Bugsnag.
# This script gets sidekiq arguments from an error event of Bugsnag and lists arguments that are unique.
# It takes a long time to execute due to the Rate Limit of Bugsnag API.
#
# USAGE
# $ ruby path/to/bugsnag_sidekiq_args.rb #{event_id}
# example
# $ ruby path/to/bugsnag_sidekiq_args.rb 3efgqevb4dkr9012345n6789
# > {"shop_id"=>"84f82b21-49a0-49cf-b2cf-faf93ca004a0", "_aj_symbol_keys"=>["shop_id"]}
# > {"shop_id"=>"2602f165-133a-4e45-84ac-bde7ac058026", "_aj_symbol_keys"=>["shop_id"]}
# > {"shop_id"=>"e9b50352-9940-43a6-b81e-5a9c8c24a636", "_aj_symbol_keys"=>["shop_id"]}
@sukechannnn
sukechannnn / whitelist.md
Last active January 22, 2018 16:23 — forked from okohs/whitelist.md
20180122_定時前に帰宅できた企業

はじめに

書き方

該当する各社の対応欄に企業名を書いてください。備考があれば適宜カッコ書きしてください。

目的

  • 定時前に帰宅させてくれるホワイトな会社を気軽に作りたい
  • 定時前に帰宅させてくれるホワイトな会社がホワイトアピールできる場があれば良いな

簡単なパターンマッチ

a = 1
a + 3

1 = a
2 = a
  1. Erlangをhomebrewで入れる
  2. Elixirはexenvで入れる
  3. "Hello World"

erlenvはinstallコマンドがないので、普通にhomebrewでインストールする

$ brew install erlang
@sukechannnn
sukechannnn / Chapter_17_1.txt
Last active April 24, 2017 03:43
たのしいRuby練習問題
たのしい Ruby
Rubyは たのしい
Ruby is fun.