Skip to content

Instantly share code, notes, and snippets.

View lukas-buergi's full-sized avatar

Lukas Bürgi lukas-buergi

View GitHub Profile
@lukas-buergi
lukas-buergi / compress.sh
Created May 25, 2020 13:23
Post process scanned books
#!/bin/bash
#######################################################################
# Copyright Lukas Bürgi 2020
#
# This file is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This file is distributed in the hope that it will be useful, but WITHOUT
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by LyX configure 2.3.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --enable-qt5 --prefix=/data/data/com.termux/files/ QTDIR=/data/data/com.termux/files/usr
## --------- ##
## Platform. ##
@lukas-buergi
lukas-buergi / LICENSE
Created February 6, 2019 16:26
Minimal compilable occt example, based on given bottle example with minimal changes. Compiles as is on current Debian testing.
No idea. Work derived from:
1 opencascade docs, bottle tutorial so presumably LGPL 2.1,
2 the makefile is from https://www.opencascade.com/content/guide-compilation-make-bottle-tutorial-linux-ubuntu-1210
without any rights granted.
MemTotal: 16374320 kB
MemFree: 13880256 kB
MemAvailable: 14975272 kB
Buffers: 98768 kB
Cached: 1214584 kB
SwapCached: 0 kB
Active: 1615968 kB
Inactive: 636980 kB
Active(anon): 940332 kB
Inactive(anon): 14024 kB
execve("/home/t4b/bin/steam", ["steam"], [/* 37 vars */]) = 0
brk(0) = 0x160e000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9b76040000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=136238, ...}) = 0
mmap(NULL, 136238, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9b7601e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
@lukas-buergi
lukas-buergi / ardour-start.sh
Created July 17, 2016 19:05
Ardour start up and clean up routine
#!/bin/bash
# basic Ardour wrapping script
# sets correct cpu governors
for cpu in $(seq 0 $(($(nproc) -1))) ; do
sudo -A cpufreq-set -c $cpu -g performance
done
Ardour4
# problem: if governor already was performance (or something else), this sets it back wrong
@lukas-buergi
lukas-buergi / trackball.sh
Created May 6, 2016 19:50
Sets up 2d scroll for trackball
#!/bin/bash
# use xinput to get hardware id, xinput --list-props id to get order of
# hardware buttons for your mouse
# hardware software
# 1 large one left left click
# 2 both large ones middle click
# 3 large one right right click
# 4 trackball down scroll up
# 5 trackball up scroll down
@lukas-buergi
lukas-buergi / flachenbrandIA.tex
Created June 28, 2014 11:32
Flächenbrand Inhaltsangabe - Creative Commons Attribution-ShareAlike 4.0 International License
\documentclass[a4paper,12pt]{article}
\usepackage[ngerman]{babel}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage[utf8x]{inputenc}
\usepackage{graphicx}
\usepackage{calc}
%\usepackage[cm]{fullpage}
\usepackage{fullpage}
@lukas-buergi
lukas-buergi / netmount.py
Last active December 21, 2015 13:18
A script which mounts everything in /media of one or several remote machines into a local folder (by default /media). It adds a prefix to the stuff which is mounted to avoid conflicts.
#!/usr/bin/python3.3
import argparse, os, subprocess
#settings
setting_hostList=['agathe','a10','lukas-c', 'dummy']
addresses={ 'agathe':'192.168.1.2',
'a10':'192.168.1.21',
'lukas-c':'192.168.1.3',
'dummy':'192.168.1.15'}
usernames={ 'agathe':'t4b',
@lukas-buergi
lukas-buergi / latex2png.sh
Last active August 8, 2016 11:20
converts latex to .png
#!/bin/bash
# converts latex to .png. It doesn't do this directly, there are temporary files saved in $dir
# To make a LaTeX-Document suitable for this, you should include
# \pagestyle{empty}
# or there will be loads of whitespace around the thing you actually want.
# Usage:
# latex2png file [density]
# file: latex file