Skip to content

Instantly share code, notes, and snippets.

@chen7897499
chen7897499 / btcd.conf
Last active December 3, 2021 08:22
communicate with btcd node
[Application Options]
datadir=./btcd/data
listen=127.0.0.1:9333
simnet=1
nobanning=1
debuglevel=debug
[{"forfeit":false,"results":[{"score":0,"team_id":2576},{"score":0,"team_id":1651}],"slug":"winstrike-team-vs-virtus-pro-2020-05-28","end_at":null,"serie_id":2684,"modified_at":"2020-05-27T23:05:51Z","status":"not_started","begin_at":"2020-05-28T16:00:00Z","league_id":4249,"winner_id":null,"league":{"id":4249,"image_url":"https://cdn.pandascore.co/images/league/image/4249/Parimatch_League_logo.jpg","modified_at":"2019-10-10T08:50:53Z","name":"Parimatch League","slug":"dota-2-parimatch-league","url":null},"tournament_id":4120,"detailed_stats":true,"match_type":"best_of","scheduled_at":"2020-05-28T16:00:00Z","name":"WStrike vs VP","original_scheduled_at":"2020-05-28T16:00:00Z","tournament":{"begin_at":"2020-05-10T10:00:00Z","end_at":null,"id":4120,"league_id":4249,"live_supported":false,"modified_at":"2020-05-26T16:35:03Z","name":"Regular","prizepool":null,"serie_id":2684,"slug":"dota-2-parimatch-league-round-robin-3-2020-regular","winner_id":null,"winner_type":null},"serie":{"begin_at":"2020-05-10T10:00:00Z","
[{"begin_at":"2020-05-27T22:00:00Z","end_at":"2020-06-14T18:00:00Z","id":4214,"league":{"id":4398,"image_url":"https://cdn.pandascore.co/images/league/image/4398/600px-Vulkan_Fight_Series_S1.png","modified_at":"2020-05-25T07:47:43Z","name":"Vulkan Fights Series","slug":"dota-2-vulkan-fights-series","url":null},"league_id":4398,"live_supported":false,"matches":[],"modified_at":"2020-05-25T07:51:01Z","name":"Playoffs","prizepool":null,"serie":{"begin_at":"2020-05-27T22:00:00Z","description":null,"end_at":"2020-06-14T18:00:00Z","full_name":"2020","id":2723,"league_id":4398,"modified_at":"2020-05-25T07:48:39Z","name":null,"season":null,"slug":"dota-2-vulkan-fights-series-2020","tier":"c","winner_id":null,"winner_type":null,"year":2020},"serie_id":2723,"slug":"dota-2-vulkan-fights-series-2020-playoffs","teams":[],"videogame":{"id":4,"name":"Dota 2","slug":"dota-2"},"winner_id":null,"winner_type":null},{"begin_at":"2020-05-28T22:00:00Z","end_at":"2020-06-14T18:00:00Z","id":4213,"league":{"id":4398,"image_url":"http
[{"begin_at":"2020-05-27T22:00:00Z","description":null,"end_at":"2020-06-14T18:00:00Z","full_name":"2020","id":2723,"league":{"id":4398,"image_url":"https://cdn.pandascore.co/images/league/image/4398/600px-Vulkan_Fight_Series_S1.png","modified_at":"2020-05-25T07:47:43Z","name":"Vulkan Fights Series","slug":"dota-2-vulkan-fights-series","url":null},"league_id":4398,"modified_at":"2020-05-25T07:48:39Z","name":null,"season":null,"slug":"dota-2-vulkan-fights-series-2020","tier":"c","tournaments":[{"begin_at":"2020-05-27T22:00:00Z","end_at":"2020-06-14T18:00:00Z","id":4212,"league_id":4398,"live_supported":false,"modified_at":"2020-05-25T07:48:31Z","name":"Group A","prizepool":null,"serie_id":2723,"slug":"dota-2-vulkan-fights-series-2020-group-a","winner_id":null,"winner_type":null},{"begin_at":"2020-05-27T22:00:00Z","end_at":"2020-06-14T18:00:00Z","id":4214,"league_id":4398,"live_supported":false,"modified_at":"2020-05-25T07:51:01Z","name":"Playoffs","prizepool":null,"serie_id":2723,"slug":"dota-2-vulkan-fights-s
[{"id":4398,"image_url":"https://cdn.pandascore.co/images/league/image/4398/600px-Vulkan_Fight_Series_S1.png","modified_at":"2020-05-25T07:47:43Z","name":"Vulkan Fights Series","series":[{"begin_at":"2020-05-27T22:00:00Z","description":null,"end_at":"2020-06-14T18:00:00Z","full_name":"2020","id":2723,"league_id":4398,"modified_at":"2020-05-25T07:48:39Z","name":null,"season":null,"slug":"dota-2-vulkan-fights-series-2020","tier":"c","winner_id":null,"winner_type":null,"year":2020}],"slug":"dota-2-vulkan-fights-series","url":null,"videogame":{"current_version":null,"id":4,"name":"Dota 2","slug":"dota-2"}},{"id":4393,"image_url":"https://cdn.pandascore.co/images/league/image/4393/World_E-sports_Legendary_League.jpg","modified_at":"2020-05-20T08:30:59Z","name":"World E-sports Legendary League","series":[{"begin_at":"2020-05-20T22:00:00Z","description":null,"end_at":"2020-05-23T13:00:00Z","full_name":"China Qualifier 2020","id":2707,"league_id":4393,"modified_at":"2020-05-20T08:36:04Z","name":"China Qualifier","sea
OIDC_CERT: "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDBfCwAiNv8xFfz\nvSw7NRJbS9FYDLsa/PJD+mnqyCdJCa154riu/R09ykybg6iVOhbsLyyhUHGUEpAE\nIWEZ2AemfJ02eX5c1U0Yb2zw6aVA0JwPQw5xYJH/I7kl+nKOgazR/BizQxWotF+a\naCHTTpsca7AcOzTfYpuTrORal41WLhBouTRVL99G81MOup31Dx6zcZSGK6PUX1iS\niMvIC5MD0UhOQpKsL0V/FIjfDDmln/ATBs5yKd4ZG2gp6VBY4pylHz3xksCRYpjZ\nZRV2iindb/R79FUlO0cU1O8MsP2FK63b8zkn3ZZlMaswg8KzIELFcOUXrk00nn8C\ndk68H0b7AgMBAAECggEBAIiKgV7rNhu9z7ehM1qhDFBDQ/vYGB5mjO0uBZr7HsYr\nPzH5ro1G8GDPp5pDoi+VK+IHNH6uj0iIhPt1NtoPGu8Bl8x+lo8as+pfj8i/ibAg\nx1D56HJYTQ95fUpw4HDy0CvrtN6ko99HUwRbIivFmC7JTCHQInLWWqYvZ4MK2mIK\nqmIzD+u5eR0m2vXo4+CHE9O1ZV3+gzZ9DZNPGR8K9Yvw36YF2/aB7Bm5jWYwE0vc\nCbMg7hN6IFglptgDlKM6vlVgE5TFaw3+cxtiAm3xg+ZlED8MsR/407bUZWhjV/Ly\nMxss4WvniZEDHEA/U5rghGaCVWzJgs5qIPJXI8aKrHkCgYEA9JkuUQM27RjDtIBe\n4wkzQxS2sPEUf+Li7HEU7/agArJFGf+vTfwTEvXo4NYR7xc5awTj+YFcBE7h8DZk\nhf+yyhXi67M0CJhnblsjBnwuj/e0JHhjRpOtlCCdwjJMXKo9UUh+RMSMgTQISHS+\nV5LY4PmJzKz/i9UzXcqcTEQKOl8CgYEAyoEM1qa0NcpDhgUEtit1itK3Rih
@chen7897499
chen7897499 / 1 Gist conventions
Created December 29, 2016 05:51 — forked from PavloBezpalov/1 Gist conventions
Deploy Rails 5.0.0.beta3 to VPS(Ubuntu 14.04.4 LTS). Nginx, Puma, Capistrano3, PostgreSQL, RVM.
<<APP>> change this variables
#script to see differents between consistently calculation and parallel calculation
gem "parallel"
require 'parallel'
#function can compute more efficiently and I know it :)
def is_prime?(num)
return true if num == 1
return false if num < 1
for x in 2...num
@chen7897499
chen7897499 / .rvmrc
Created November 18, 2016 09:09 — forked from danielnc/Gemfile
Ruby-based Benchmark of MessagePack vs. JSON vs. Yajl vs. Protobuffers vs. MultiJson vs. Marshal vs. YAML vs. BSON
rvm --create 1.9.3@benchmarks
@chen7897499
chen7897499 / stack_overflow_debugger.rb
Created August 31, 2016 14:04 — forked from myronmarston/stack_overflow_debugger.rb
Stack overflow debugger (since Ruby doesn't provide the whole stack in this case)
max_stack_frames = 500
TooManyStackFrames = Class.new(StandardError)
TracePoint.new(:call) do |tp|
if caller.size >= max_stack_frames
raise TooManyStackFrames, "Stack has exceeded #{max_stack_frames} frames"
end
end.enable