Skip to content

Instantly share code, notes, and snippets.

View YtvwlD's full-sized avatar

Niklas YtvwlD

View GitHub Profile
@YtvwlD
YtvwlD / Makefile
Last active September 7, 2018 19:01
.PHONY: tests
CFLAGS=-Wall -std=c99
TESTCFLAGS:=$(shell pkg-config --cflags --libs check)
#FILE=<datei>
main:
make -B CFLAGS="$(CFLAGS) main.c" $(FILE)
run: main
./$(FILE)
@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 / .gitignore
Last active July 14, 2017 18:17
battery-stats graph
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# plot.ly
*.html
This file has been truncated, but you can view the full file.
@YtvwlD
YtvwlD / .empty
Last active February 16, 2017 15:06
big repo
This file isn't important.
@YtvwlD
YtvwlD / README.md
Last active March 19, 2019 13:46
#dorfleaks
@YtvwlD
YtvwlD / mete-drinks-graph.py
Last active May 10, 2019 15:28
mete-drinks-graph
#!/usr/bin/python3
import requests
from json import JSONDecoder
import plotly
from datetime import datetime
from sys import argv
jsondec = JSONDecoder()
BASE_URL = "http://mete/api/v1/audits.json"
parameters = dict()
if "--user" in argv:
@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 / 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: