Sidekiq::ScheduledSet.new.clear
Sidekiq::RetrySet.new.clear
Sidekiq::Stats.new.reset
git config --global core.editor "subl -n -w" |
make a post about how to update fork repos | |
https://help.github.com/articles/configuring-a-remote-for-a-fork/ | |
https://help.github.com/articles/syncing-a-fork/ |
gem install pg -v '0.21.0' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config |
{ | |
"hook_id" => 4665, | |
"hook_key" => "bdb0fcad-7e34-46c4-98a4-1a98ce88098a", | |
"hook_time" => 1505180789, | |
"hook_signature" => "X-Webhook-Signature", | |
"payload" => { | |
"organisation_id" => 48944, | |
"data" => { | |
"business_name" => "MKT", | |
"staff" => "10", |
{ | |
"meta": { | |
"limit": 20, | |
"next": null, | |
"offset": 0, | |
"previous": null, | |
"time_zone": "US/Pacific", | |
"total_count": 0 | |
}, | |
"objects": [] |
{ | |
"meta": { | |
"limit": 20, | |
"next": null, | |
"offset": 0, | |
"previous": null, | |
"time_zone": "US/Pacific", | |
"total_count": 3 | |
}, | |
"objects": [ |
{ | |
"v" => 1, "matches_filters" => { | |
"current" => [] | |
}, "meta" => { | |
"v" => 1, | |
"action" => "added", | |
"object" => "deal", | |
"id" => 25933, | |
"company_id" => 1385452, | |
"user_id" => 2183736, |
# How to group this collection so that Clover::Order will be grouped by every 15 mins | |
{ | |
Sun, 09 Jul 2017 => [ | |
#<Clover::Order:0x007f82efc7a758 | |
@created_time=2017-07-10 00:15:00 +0800, | |
@id="5CY4WQG1XWJK1", | |
@state="paid", | |
@total=1234>, | |
#<Clover::Order:0x007f82efc6b550 |
url = "/merchants/#{merchant_id}/orders" | |
if state && start_datetime && end_datetime | |
url += "?filter=createdTime>=#{start_datetime}" | |
url += "&filter=createdTime<=#{end_datetime}" | |
url += "&filter=state=#{state}" | |
elsif start_datetime && end_datetime | |
url += "?filter=createdTime>=#{start_datetime}" | |
url += "&filter=createdTime<=#{end_datetime}" | |
elsif state |