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/sh | |
if [[ $UID -ne 0 ]]; then | |
echo "$0 must be run as root." | |
exit 1 | |
fi | |
if [[ $# -ne 2 ]]; then | |
echo "Invalid number of arguments." | |
echo "Usage: $0 BLK_DEV LABEL" | |
exit 2 | |
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
import itertools | |
import string | |
import re | |
class PhraseMatcher(object): | |
ACTIONS = [] | |
WORDS = {} | |
@classmethod | |
def get_possible_phrases(cls): | |
# Sample implementation, there might be a better one |
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
# You need to download the VoxForge Dict from: | |
# http://www.repository.voxforge1.org/downloads/SpeechCorpus/Trunk/Lexicon/VoxForge.tgz | |
# and put it to this location: | |
# /home/jan/Downloads/VoxForge.tgz | |
import os | |
import re | |
import tempfile | |
import subprocess | |
import shutil |
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
# By Jan Holthuis <[email protected]> | |
pkgname=rtl-sdr-keenerd-git | |
pkgver=0.0.0 | |
pkgrel=1 | |
pkgdesc="Keenerd's RTL-SDR experimental branch" | |
arch=('i686' 'x86_64' 'armvh6') | |
url="https://github.com/keenerd/rtl-sdr" | |
license=('MIT') | |
depends=('libusb>=1.0') |
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
# Adblock script for OpenWRT | |
# (c) 2014 by Jan Holthuis | |
# | |
# This is an adblocker script for OpenWRT. Simply run this script as a | |
# daily cronjob on your OpenWRT-router. This works since OpenWRT | |
# revision 39312 [1] and does not manipulate any files in /etc/. | |
# Instead, this adds the adblock serverlist as a separate file | |
# to /tmp/dnsmasq.d/. It also checks the file with grep to make sure | |
# that it doesn't contain malicious commands. | |
# |
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
# pulseaudio -v | |
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). | |
I: [pulseaudio] core-util.c: Successfully gained nice level -11. | |
I: [pulseaudio] main.c: This is PulseAudio 5.0 | |
I: [pulseaudio] main.c: Page size is 4096 bytes | |
I: [pulseaudio] main.c: Machine ID is 3a6485ee48ce47a6a28f1945c45447c5. | |
I: [pulseaudio] main.c: Using runtime directory /root/.config/pulse/3a6485ee48ce47a6a28f1945c45447c5-runtime. | |
I: [pulseaudio] main.c: Using state directory /root/.config/pulse. | |
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-5.0/modules. | |
I: [pulseaudio] main.c: Running in system mode: no |
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 | |
# | |
# Copyright (c) 2015, Jan Holthuis <[email protected]> | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions | |
# are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright |
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 | |
""" | |
cell-scan-conv.py - A simple script to mass convert images while keeping only | |
some of the RGB channels to make cells more visible on cell | |
scans. Please note that ImageMagick's convert command needs | |
to be installed and in your $PATH. | |
Copyright (c) 2015, Jan Holthuis | |
All rights reserved. |
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
# Maintainer: mfussenegger | |
# Contributor: Jan Holthuis <holthuis dot jan at googlemail dot com> | |
pkgname=libretro-pocketsnes-git | |
pkgver=r15.ac83fb2 | |
pkgrel=1 | |
pkgdesc="ARM based SNES emulator for libretro" | |
arch=('arm' 'armv6h' 'armv7h') | |
url="https://github.com/libretro/pocketsnes-libretro" | |
license=('custom') | |
makedepends=('git') |
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 | |
# | |
# This is a simple script I wrote to fix broken ArchLinuxARM installation | |
# on USB drives or SD cards. If you encountered a crash, power failure or | |
# kernel panic while updating the kernel, systemd or something like that | |
# and are unable to boot your device, you can simply plug the USB drive/ | |
# SD card into your desktop computer and run this script. | |
# You can't simply chroot and run the script from there, because your | |
# desktop computer's architecture is probably x86/x86_64 and your single | |
# board computer is ARM-based. |
OlderNewer