This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import urllib.parse | |
import urllib.request | |
import xml.etree.ElementTree as ET | |
BASE_PATH = "file:///home/andreas/.audio_rhythmbox/" | |
if len(sys.argv) != 3: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Usage: | |
mkdir -p blocks | |
./opusenc_example test_libopusenc_ope_encoder_continue_new_file.raw | |
( for i in `find blocks -name '*.ogg' | sort -n`; do opusdec $i -; done ) | aplay -f dat | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// Implementation //// | |
#include <atomic> | |
#include <csignal> // XXX for debugging | |
#include <cstdint> | |
template <typename T> | |
class Queue { | |
private: | |
uint32_t m_data_size; // Number of elements allocated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* EOLIAN Web Music Player | |
* Copyright (C) 2018 Andreas Stöckel | |
* | |
* This program 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 program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
jupyter nbconvert --to latex --template article $1.ipynb | |
sed -i 's/\\maketitle//' $1.tex | |
sed -i 's/section{/section*{/' $1.tex | |
sed -i 's/\(\\documentclass\[\(.*\)\]{article}$\)/\1\n\n \\usepackage{palatino}\n \\setlength{\\parindent}{0cm}\n \\setlength{\\parskip}{1em}\n/' $1.tex | |
sed -i 's/\\begin{Verbatim}\[\(.*\)\]/\\begin{Verbatim}[\1,fontsize=\\small]/' $1.tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
################################################################################ | |
# imgshrink.py # | |
# Mirrors a directory containing photos in smaller resolution # | |
# (c) 2019 Andreas Stöckel, licensed under the GPLv3 # | |
################################################################################ | |
import math | |
import multiprocessing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
################################################################################ | |
# zfs_link_snapshots.py # | |
# Creates a "snapshots" directory in users home directories # | |
# (c) 2019 Andreas Stöckel, licensed under the GPLv3 # | |
################################################################################ | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
import urllib.parse | |
import urllib.request | |
import lxml.etree as ET | |
import icu | |
import collections | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
QCOW2_ACTION="$1" | |
QCOW2_FILENAME="$2" | |
QCOW2_MOUNTPOINT="$3" | |
if test -z "$QCOW2_ACTION" || test -z "$QCOW2_FILENAME" || test -z "$QCOW2_MOUNTPOINT"; then | |
echo "Usage: mount.qcow2 <mount|unmount> <FILENAME> <MOUNTPOINT>"; | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* libbioneuronqp -- Library solving for synaptic weights | |
* Copyright (C) 2020 Andreas Stöckel | |
* | |
* This program 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 program is distributed in the hope that it will be useful, |