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 / 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
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)
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
@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.
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 / 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