Skip to content

Instantly share code, notes, and snippets.

View elohmeier's full-sized avatar

Enno Richter elohmeier

View GitHub Profile
{ buildPythonApplication, fetchFromGitHub, eventlet, flask, flask-socketio, flask_wtf }:
buildPythonApplication rec {
pname = "tinypilot";
version = "2020-07-25";
propagatedBuildInputs = [ eventlet flask flask-socketio flask_wtf ];
# modified src with added setup.py
src = fetchFromGitHub {
owner = "elohmeier";
@elohmeier
elohmeier / docker-cpimg
Created August 23, 2018 07:30
Copies files from a docker image
#!/bin/bash
img="$1"
src="$2"
dst="$3"
if [ -z "$img" ] || [ -z "$src" ] || [ -z "$dst" ]
then
echo "Usage: docker-cpimg IMAGE SRC DEST"
echo "e.g. docker-cpimg nginx /etc ./etc"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import aqbanking
def callback(domain, prio, msg):
print('[LOG]: %r' % (msg,))
def password_cb(flags, token, title, text, minLen, maxLen):
# we'll get something like:
>>> ret = acc.balance()
[LOG]: 'started'
[LOG]: 'started'
[LOG]: 'dialog.c: 75: Could not read dialog preferences (-67)'
4:2017/02/11 17-21-00:gwen(334):dialog.c: 75: Could not read dialog preferences (-67)
[LOG]: 'cppgui.cpp: 139: CppGuiLinker::OpenDialog'
3:2017/02/11 17-21-00:(null)(334):cppgui.cpp: 139: CppGuiLinker::OpenDialog
[LOG]: 'cppgui.cpp: 269: CppGui::OpenDialog'
3:2017/02/11 17-21-00:(null)(334):cppgui.cpp: 269: CppGui::OpenDialog
[LOG]: 'gui.c: 1380: Unable to openDialog: -68'