Skip to content

Instantly share code, notes, and snippets.


Niklas YtvwlD

View GitHub Profile
YtvwlD / .gitignore
Last active November 28, 2019 20:13
Stream the screen of your Android device to a Chromecast using only free software!
View .gitignore
YtvwlD / Vagrantfile
Created June 28, 2019 18:09
NFS minimal example
View Vagrantfile
Vagrant.configure("2") do |config| = "ubuntu/bionic64"
config.vm.provider "virtualbox" do |v|
v.memory = 256
config.vm.define "server" do |server|
server.vm.hostname = "server" "private_network", ip: ""
server.vm.provision "shell", inline: <<-SHELL
YtvwlD /
Last active May 12, 2019 09:35
simple script to run tests for the nand2tetris course
#!/usr/bin/env python3
from pathlib import Path
from subprocess import run, PIPE, TimeoutExpired
from sys import argv
from collections import namedtuple
from queue import Queue
from typing import Iterator, List, Optional, Tuple, Union
import huepy
YtvwlD /
Last active June 30, 2018 20:40
download NASA's Astronomy Picture of the Day
#!/usr/bin/env python3
from os import environ, rename
from os.path import expanduser
from urllib.request import urlretrieve
from bowshock.apod import apod
# you might want to change these values
DEST_FILE = expanduser("~/.cache/kscreenlocker_greet/plasma_engine_potd/apod")
YtvwlD /
Last active April 6, 2018 17:22
base64 convergence
#!/usr/bin/env python3
from base64 import b64encode
from time import sleep
from abc import abstractmethod
import curses
values = [
"input": b"a",
YtvwlD / index.html
Last active October 20, 2017 20:16
display pixels in a canvas
View index.html
<!doctype html>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<script src="pixelflut.js"></script>
YtvwlD /
Last active February 6, 2018 15:17
Puts to a Chromecast.
#!/usr/bin/env python3
import pychromecast
from import MediaController
from sys import argv
from random import random
from time import sleep
print("Searching for devices...")
YtvwlD /
Last active September 27, 2017 12:51
Restores encrypted Titanium Backups on rooted Android phones.


This script can restore encrypted Titanium Backups to a rooted Android phone.


You'll need a working Python interpreter and TiBUdecrypter.

The easiest way to achieve this is to install Termux and then run this:

YtvwlD / Pipfile
Last active May 20, 2022 13:00
View Pipfile
url = ""
verify_ssl = true
name = "pypi"
mpris2 = "*"
paho-mqtt = "*"