Skip to content

Instantly share code, notes, and snippets.

View 48klocs's full-sized avatar

Dave 48klocs

View GitHub Profile
curl 'https://db-api.destinytracker.com/api/external/reviews?page=1&platform=4&mode=0' -H 'Referer: https://beta.destinyitemmanager.com/' -H 'Origin: https://beta.destinyitemmanager.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' -H 'Content-Type: application/json' --data-binary '{"selectedPerks":[3262209356,1633794450,2600899007,3789923091,2788911999,290114209,699706967],"attachedMods":[],"referenceId":2592351697,"instanceId":"6917529075695891858","availablePerks":[290114209,737144025,699706967,2620835322]}' --compressed
@48klocs
48klocs / reviews for twilight oath 2.json
Created October 8, 2018 13:19
Another weapon retrieval
curl 'https://db-api.destinytracker.com/api/external/reviews?page=1&platform=4&mode=0' -H 'Referer: https://beta.destinyitemmanager.com/' -H 'Origin: https://beta.destinyitemmanager.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' -H 'Content-Type: application/json' --data-binary '{"selectedPerks":[878286503,1467527085,3142289711,247725512,1015611457,3109957218,2323986101,1590375901],"attachedMods":[],"referenceId":3297863558,"instanceId":"6917529077588128992","availablePerks":[1467527085,1482024992,3142289711,106909392,247725512,1015611457]}' --compressed
@48klocs
48klocs / reviews for twilight oath 1.json
Created October 8, 2018 13:18
One weapon review retrieval
curl 'https://db-api.destinytracker.com/api/external/reviews?page=1&platform=4&mode=0' -H 'Referer: https://beta.destinyitemmanager.com/' -H 'Origin: https://beta.destinyitemmanager.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' -H 'Content-Type: application/json' --data-binary '{"selectedPerks":[1636108362,1840239774,1087426260,2213355989,1631667848,3109957218,2323986101,4283235143],"attachedMods":[],"referenceId":640114618,"instanceId":"6917529077007505379","availablePerks":[1840239774,1392496348,1087426260,3230963543,2213355989,1631667848]}' --compressed
curl 'https://db-api.destinytracker.com/api/external/reviews/fetch?platform=4&mode=0' -H 'Referer: https://beta.destinyitemmanager.com/' -H 'Origin: https://beta.destinyitemmanager.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' -H 'Content-Type: application/json' --data-binary '[{"referenceId":2653316158,"availablePerks":[3661387068,202670084,1431678320,3230963543,2039302152,1645158859]},{"referenceId":1839565992,"availablePerks":[1288081798,1452368633,1087426260,679225683,706527188,3425386926]},{"referenceId":3040742682,"availablePerks":[679077873,13792278,2405638014,4134353779,1431678320,3300816228,3038247973]},{"referenceId":1843044399,"availablePerks":[445755706,445755711,2420895100,1431678320,706527188,47981717]},{"referenceId":2112909414,"availablePerks":[1926090095,1926090093,1926090091,247725512,1968497646,3230963543,679225683,3425386926]},{"referenceId":3040742682,"availablePerks":[679077873,679077872,13792279,
@48klocs
48klocs / gist:d9a03812f5900297a1bf12036327afbd
Created September 6, 2018 23:22
Updated DTR API fetch response (rough idea)
[
{
"referenceId": 1234567,
"votes": {
"upvotes": 55,
"downvotes": 10
},
"reviewCount": 42,
"reviewVotes": {
"upvotes": 40,
@48klocs
48klocs / gist:6b3264f2c863f1aa0b204d3923858782
Created August 23, 2018 01:11
Abortive attempts at GraphQL
# Welcome to GraphiQL
#
# GraphiQL is an in-browser tool for writing, validating, and
# testing GraphQL queries.
#
# Type queries into this side of the screen, and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text.
#
# GraphQL queries typically start with a "{" character. Lines that starts
@48klocs
48klocs / giant downgoats.json
Created December 3, 2017 15:00
Tweaked rating formula
_getDownvoteMultiplier(dtrRating) {
if (dtrRating.votes.total > 300) {
return 1.0;
}
if (dtrRating.votes.total > 200) {
return 1.5;
}
if (dtrRating.votes.total > 100) {

Keybase proof

I hereby claim:

  • I am 48klocs on github.
  • I am 48klocs (https://keybase.io/48klocs) on keybase.
  • I have a public key ASBNN7IktqD3pkTpK8n_rux3Wsup-TqXPpDpF_Ascpzwggo

To claim this, I am signing this object:

npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g
> [email protected] install C:\Users\dave.solomon\Documents\GitHub\DIM\node_modules\iltorb
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack TypeError: Cannot read property 'version' of null
node-pre-gyp ERR! stack at Object.module.exports.evaluate (C:\Users\dave.solomon\Documents\GitHub\DIM\node_modules\iltorb\node_modules\node-pre-gyp\lib\util\versioning.js:270:32)
node-pre-gyp ERR! stack at install (C:\Users\dave.solomon\Documents\GitHub\DIM\node_modules\iltorb\node_modules\node-pre-gyp\lib\install.js:168:31)
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#