Skip to content

Instantly share code, notes, and snippets.

View YtvwlD's full-sized avatar

Niklas YtvwlD

View GitHub Profile
@YtvwlD
YtvwlD / keybase.md
Created December 8, 2014 16:01
keybase.md

Keybase proof

I hereby claim:

  • I am ytvwld on github.
  • I am ytvwld (https://keybase.io/ytvwld) on keybase.
  • I have a public key whose fingerprint is 73DA AC8A 8F66 5966 2031 187F 8385 2BB8 5516 C1C7

To claim this, I am signing this object:

@YtvwlD
YtvwlD / deployment.pri
Created June 14, 2016 14:28
pyotherside crash qqmlengine
unix:!android {
isEmpty(target.path) {
qnx {
target.path = /tmp/$${TARGET}/bin
} else {
target.path = /opt/$${TARGET}/bin
}
export(target.path)
}
INSTALLS += target
@YtvwlD
YtvwlD / .empty
Last active February 16, 2017 15:06
big repo
This file isn't important.
This file has been truncated, but you can view the full file.
@YtvwlD
YtvwlD / .gitignore
Last active July 14, 2017 18:17
battery-stats graph
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# plot.ly
*.html
@YtvwlD
YtvwlD / Dockerfile
Last active August 18, 2017 17:05
mpd2mqtt
# https://docs.docker.com/get-started/part2/#define-a-container-with-a-dockerfile
# Use an official Python runtime as a parent image
FROM python:3-alpine
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
@YtvwlD
YtvwlD / README.md
Last active September 27, 2017 12:51
Restores encrypted Titanium Backups on rooted Android phones.

tb_restore

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

Install

You'll need a working Python interpreter and TiBUdecrypter.

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

@YtvwlD
YtvwlD / index.html
Last active October 20, 2017 20:16
display pixels in a canvas
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pixelflut</title>
<link rel="stylesheet" href="style.css" />
<script src="pixelflut.js"></script>
</head>
@YtvwlD
YtvwlD / maurudor-chromecast.py
Last active February 6, 2018 15:17
Puts Maurudor.de to a Chromecast.
#!/usr/bin/env python3
import pychromecast
from pychromecast.controllers.media import MediaController
from sys import argv
from random import random
from time import sleep
print("Searching for devices...")
@YtvwlD
YtvwlD / base64conv.py
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",