Skip to content

Instantly share code, notes, and snippets.

View datagutt's full-sized avatar
🐱

Thomas Lekanger datagutt

🐱
View GitHub Profile
@datagutt
datagutt / keybase.md
Created March 13, 2016 14:10
keybase

Keybase proof

I hereby claim:

  • I am datagutt on github.
  • I am datagutt (https://keybase.io/datagutt) on keybase.
  • I have a public key whose fingerprint is 61CA 9B9D 0FF6 14E0 2011 83DF EDA3 A225 055D E54E

To claim this, I am signing this object:

@datagutt
datagutt / gist:cea0bf723305370030cf
Last active August 29, 2015 14:12
Fixed trakt.js: Fixes node-trakt errors when trakt returns HTML instead of json
var api = require("./api-definition"),
http = require("http"),
_ = require("underscore"),
crypto = require("crypto");
var trakt = module.exports = {};
var _options = {};
/**
@datagutt
datagutt / Topic JSON output
Created November 13, 2014 19:41
@NodeBB/Nodebb#2373
{"tid":2,"uid":1,"cid":"1","mainPid":2,"title":"Nytt 9,2-tommer Xiaomi-nettbrett lekket","slug":"2/nytt-9-2-tommer-xiaomi-nettbrett-lekket","timestamp":1414785493189,"lastposttime":1414860103264,"postcount":2,"viewcount":101,"locked":false,"deleted":false,"pinned":false,"relativeTime":"2014-10-31T19:58:13.189Z","posts":[{"_key":"post:2","pid":2,"uid":1,"tid":2,"content":"<p>I følge lekkede benchmark-resultater fra nettstedet GFXBench, planlegger Xiaomi et nytt billig-nettbrett med 1,280 x 720 skjermoppløsning.</p>\n<p><img src=\"https://i.imgur.com/YPomIUP.jpg\" alt=\"gsmarena_001.jpg\" /></p>\n<p>Nettbrettet vil i følge ryktene ha en 64-bit Qualcomm Snapdragon 410 SoC med en 1,2 GHz fire-kjerner CPU, en Adreno 306 GPU og 1 GB RAM. Den interne lagringsplassen vil være på 8 GB.<br />\nI tilegg vil enheten støtte SIM-kort, Bluetooth, GPS og Wi-Fi.</p>\n<p>Kilde: <a href=\"http://www.gsmarena.com/xiaomi_could_be_working_on_a_lowend_92inch_tablet-news-10091.php\">GSMArena</a></p>\n","timestamp":1414785493213,"rep

Keybase proof

I hereby claim:

  • I am datagutt on github.
  • I am datagutt (https://keybase.io/datagutt) on keybase.
  • I have a public key whose fingerprint is 486B 2F5C BD94 D0A9 C6E6 7F49 B36F 3834 80D9 E10A

To claim this, I am signing this object:

@datagutt
datagutt / gist:5414361
Last active December 16, 2015 09:39
How to make Twitter Music fully work outside the 'supported' countries.

How to make Twitter Music fully work outside the 'supported' countries.

If the "Popular Music" part of Twitter Music is empty, it is because your country is not supported. Here is how to fix it.

The JS calls "https://music.twitter.com/app/chart/popular/*country code*/rdio/" via ajax and returns "404 NOT FOUND", it doesn't understand your country code.

But you can fix this by overriding the javascript that handles the country codes. Type this into your Developer console or type it into an userscript:

TM.PLAYER.PLAYER.getCountryCode = function(){return 'us'}