Skip to content

Instantly share code, notes, and snippets.

View pschmitt's full-sized avatar
🧠
spaces > tabs

Philipp Schmitt pschmitt

🧠
spaces > tabs
View GitHub Profile
@pschmitt
pschmitt / Dockerfile
Created October 10, 2017 07:33
ARMHF Dockerfile for zabbix-proxy-sqlite3
FROM resin/raspberrypi3-alpine:3.4
LABEL maintainer "Alexey Pustovalov <alexey.pustovalov@zabbix.com>"
ARG APK_FLAGS_COMMON="-q"
ARG APK_FLAGS_PERSISTANT="${APK_FLAGS_COMMON} --clean-protected --no-cache"
ARG APK_FLAGS_DEV="${APK_FLAGS_COMMON} --no-cache"
ARG DB_TYPE=sqlite3
ENV TERM=xterm
ENV MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
@pschmitt
pschmitt / roomba.py
Last active July 27, 2017 14:24
Home Assistant - Roomba Vacuum
"""
Support for Wi-Fi enabled iRobot Roombas.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/vacuum.roomba/
"""
from functools import partial
import asyncio
import logging
import os
@pschmitt
pschmitt / proxmox-get-vm-ip.sh
Created July 15, 2017 17:53
Get the IP address of a VM hosted on Proxmox
#!/usr/bin/env bash
usage() {
echo "$(basename $0) VM"
}
get_vm_id() {
qm list | awk '/'"${1}"'/ { print $1 }'
}
@pschmitt
pschmitt / PKGBUILD
Created July 2, 2017 08:28
AUR teleport 2.2.3
# Maintainer: Johannes Pfrang <johannespfrang+arch @ gmail.com>
# Co-Maintainer: Emanuele 'Lele aka eldios' Calo' <xeldiosx@gmail.com>
pkgname=teleport
pkgver=2.2.3
pkgrel=1
pkgdesc="Modern SSH server for teams managing distributed infrastructure"
arch=('x86_64')
url="https://gravitational.com/teleport"
license=('Apache')
@pschmitt
pschmitt / android_ip_webcam.json
Last active May 19, 2017 08:27
Shinobi JSON Templates
{"mode":"start","mid":"SxENKrZAHr","name":"IP Webcam","type":"h264","protocol":"http","host":"ip-webcam.lan","port":"8080","path":"/video","ext":"mp4","fps":"1","width":"640","height":"480","details":"{\"fatal_max\":\"\",\"notes\":\"\",\"rtsp_transport\":\"tcp\",\"muser\":\"USERNAME\",\"mpass\":\"PASSWORD\",\"port_force\":null,\"sfps\":\"1\",\"aduration\":\"\",\"stream_type\":\"b64\",\"stream_mjpeg_clients\":\"\",\"stream_vcodec\":\"libx264\",\"stream_acodec\":\"no\",\"hls_time\":\"2\",\"preset_stream\":\"ultrafast\",\"hls_list_size\":\"3\",\"signal_check\":\"10\",\"signal_check_log\":\"0\",\"stream_quality\":\"15\",\"stream_fps\":\"2\",\"stream_scale_x\":\"640\",\"stream_scale_y\":\"480\",\"svf\":\"\",\"snap\":null,\"snap_fps\":\"\",\"snap_scale_x\":\"\",\"snap_scale_y\":\"\",\"vcodec\":\"libx264\",\"crf\":\"1\",\"preset_record\":\"\",\"acodec\":\"none\",\"dqf\":\"0\",\"cutoff\":\"15\",\"vf\":\"\",\"timestamp\":\"0\",\"timestamp_font\":\"\",\"timestamp_font_size\":\"10\",\"timestamp_color\":\"white\",\"times
@pschmitt
pschmitt / docker-compose.yml
Last active May 18, 2017 11:41
docker-compose file for Shinobi with data persistence
version: '2'
services:
shinobi:
container_name: shinobi
build:
context: .
depends_on:
- mysql
restart: always
environment:
@pschmitt
pschmitt / PKGBUILD
Created March 10, 2017 08:09
PKGBUILD for python2-picamera
# Maintainer: Philipp Schmitt <philipp@schmitt.co>
pkgname=python2-picamera
pkgver=1.13
pkgrel=1
pkgdesc="A pure Python interface to the Raspberry Pi camera module"
arch=('any')
url="https://github.com/waveform80/picamera"
license=('BSD')
depends=('python2')
@pschmitt
pschmitt / keybase.md
Created November 22, 2016 08:15
keybase.md

Keybase proof

I hereby claim:

  • I am pschmitt on github.
  • I am pschmitt (https://keybase.io/pschmitt) on keybase.
  • I have a public key ASCivWMgDoWgg2SEg4WDF3ldZh6jwRrlfyZ0RqnkddfVRAo

To claim this, I am signing this object:

@pschmitt
pschmitt / trace
Created April 20, 2016 07:24
pysimplesoap pip error
$ python --version
Python 2.7.11
$ pip install pysimplesoap master
Collecting pysimplesoap
Using cached PySimpleSOAP-1.16.tar.gz
Building wheels for collected packages: pysimplesoap
Running setup.py bdist_wheel for pysimplesoap ... error
Complete output from command /home/pschmitt/.local/share/virtualenvs/mdm/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5vfFTH/pysimplesoap/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpc5q7_5pip-wheel- --python-tag cp27:
running bdist_wheel
running build
@pschmitt
pschmitt / taskd.service
Created September 11, 2014 18:03
taskd service file
[Unit]
Description=TaskWarrior sync server
[Service]
User=task
Type=forking
PIDFile=/var/lib/task/taskd.pid
Requires=network-online.target
Environment="TASKDDATA=/var/lib/task/data"
ExecStart=/usr/bin/taskdctl start