Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
'''Traverses JSON objects to retrieve a secret string.
The JSON objects form a tree structure. The hashes identifying an object's
children are stored in the object's `next` field. Some objects have a
`secret` value, which holds one character. In-order traversal of the object
tree gives the secret string, which when reversed yields the challenge's
solution.
Objects are retrieved from a web server by their hash (see `get_page()`).
@frederikhermans
frederikhermans / gist:a2a8a1a87b37a7e8190f
Last active November 10, 2015 13:06
PoC Fountain codes via signal collisions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@frederikhermans
frederikhermans / gist:8561382
Last active January 4, 2016 03:19
Install opencv in current homebrew (Error: undefined method `incdir' for #<PythonDependency: "python" []>)

Installing opencv fails, even though $ brew doctor doesn't have any complaints:

$ brew install opencv
==> Downloading https://github.com/Itseez/opencv/archive/2.4.7.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/opencv-2.4.7.1.tar.gz
==> Patching
patching file cmake/OpenCVFindOpenNI.cmake
Warning: Formula#python is deprecated and will go away shortly.
Error: undefined method `incdir' for #<PythonDependency: "python" []>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.