View README.md

LUFFT_OPUS20 - EPICS IOC

Installation / Requirements

For this to work, you need some requirements as mentioned here:

  • Python 2.6+ including 3.x
  • Python headers (package name "python-dev" or similar)
  • SWIG 1.3.29+ (package name "swig")
View simplenote_backup.py
#!/usr/bin/env python
import simplenote
import os, json
from datetime import date, datetime as dt
def main():
import argparse, getpass
parser = argparse.ArgumentParser()
View rpi3-arch-linux-to-sdcard.sh
#!/bin/bash
# <https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3>
set -x
echo -e "\n\nArch Linux ARM to SD Card\n"
echo -e "for the Raspberry Pi 3\n\n"
echo -e "\nAll drives on this computer:\n"
View print-png-label-to-networked-brother-label-printer.sh
# 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"
View pic_serve.py
#!/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>
View dmesg.4.7.6-1-ARCH.txt
[ 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
View rec_unlimited.py
#!/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
View fontname.sh
#!/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() {
View get_name.py
#!/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
"""
View list_otf_font_names.py
#!/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')