Skip to content

Instantly share code, notes, and snippets.

View jorants's full-sized avatar

Joran van Apeldoorn jorants

  • Amsterdam
View GitHub Profile
@jorants
jorants / README.md
Created July 8, 2024 09:52
White list domains for NPO start / plus smart TV app

White list domains for NPO start / plus smart TV app

I block my LG WebOS TV from accesing the internet, with the exception from some specific domains. In order to use the NPO start app on the TV I had to allow the attached domains.

Hopefully this saves someone else some work. Thanks to dnsproxy for helping me find these.

In case you want to play around with their smartTV site, it is located at smarttv.npoplayer.nl

@jorants
jorants / checkab.py
Last active November 27, 2018 11:24
Proofs a theorem false
"""
A nice example of the difference between an optimized algorithm and one that is not.
Problem comes from the "Mathematical theorems you had no idea existed, cause they're false" facebook page.
The (false) theorem is:
Let a<=b be positive integers and put I = range(a, b+1). Then there is a n in I such that for all k in I: k != n -> gcd(n,k) = 1.
In the code we look for an interval for which no suuch n exists.