- 80
- 631
- 9100
By default, the mDNS name is Brother QL-710W.
Protocols:
# Print a black and white PNG file on the first available Brother label printer | |
# Requires https://github.com/pklaus/brother_ql | |
# Source (.) this file to set bash completion and add the print function. | |
function print-png-label() { | |
if [ -f "$1" ]; then | |
# Change these to match your printer: | |
local LBLPMODEL="QL-720NW" | |
local LBLPSIZE="62" |
#!/usr/bin/env python | |
import sys, random, glob, os | |
from bottle import get, run, static_file, redirect, response | |
PAGE = """ | |
<!doctype html> | |
<html lang=en> | |
<head> |
[ 0.000000] Booting Linux on physical CPU 0x0 | |
[ 0.000000] Linux version 4.7.6-1-ARCH (builduser@leming) (gcc version 6.2.1 20160830 (GCC) ) #1 SMP Sat Oct 1 22:55:29 MDT 2016 | |
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d | |
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
[ 0.000000] Machine model: Udoo i.MX6 Quad Board | |
[ 0.000000] cma: Reserved 24 MiB at 0x4e800000 | |
[ 0.000000] Memory policy: Data cache writealloc | |
[ 0.000000] On node 0 totalpages: 262144 | |
[ 0.000000] free_area_init_node: node 0, pgdat c11dd000, node_mem_map ef6f8000 | |
[ 0.000000] Normal zone: 1728 pages used for memmap |
#!/usr/bin/env python3 | |
"""Create a recording with arbitrary duration. | |
PySoundFile (https://github.com/bastibe/PySoundFile/) has to be installed! | |
WARNING: This works only in Python 3.x! | |
""" | |
import argparse | |
import tempfile |
#!/bin/bash | |
ttfinfo() { | |
ttf2pt1 -pft -Gf -Ouost "$1" - 2>/dev/null | \ | |
gawk '/\/FullName/ { | |
print gensub(".*/FullName.*\\(([^)]*)\\)([[:space:]]readonly)?[[:space:]]+def[[:space:]]*.*", "\\1", 1, $0); | |
}' | |
} | |
type1info() { |
#!/usr/bin/env python | |
""" | |
From | |
https://github.com/gddc/ttfquery/blob/master/ttfquery/describe.py | |
and | |
http://www.starrhorne.com/2012/01/18/how-to-extract-font-names-from-ttf-files-using-python-and-our-old-friend-the-command-line.html | |
ported to Python 3 | |
""" |
#!/usr/bin/env python | |
""" Taken from http://stackoverflow.com/a/23703564/183995 """ | |
import os, sys, argparse | |
from bitstring import BitStream | |
parser = argparse.ArgumentParser() | |
parser.add_argument('folder') |
jupyter: | |
image: jupyter/datascience-notebook | |
environment: | |
- PASSWORD=${PASSWORD} | |
nginx: | |
image: nginx | |
links: | |
- jupyter |