Skip to content

Instantly share code, notes, and snippets.

@konradstrack
konradstrack / change_backlight.py
Last active March 12, 2023 21:19
A script to uniformly (logarithmically) change screen brightness using xbacklight
#!/usr/bin/env python3
__author__ = 'Konrad Strack'
__copyright__ = 'Copyright 2014, Konrad Strack'
__license__ = 'MIT'
from math import log10
import sys
import subprocess
@konradstrack
konradstrack / toefl-speaking-trainer.sh
Created March 16, 2014 12:32
A simple script for practicing for the TOEFL exam. It uses espeak to read questions from a file, and for each question records the response and plays it back.
#!/bin/bash
if [ $# -lt 2 ]; then
echo "usage: $1 questions_file output_dir"
exit -1
fi
questions_file=$1
output_dir=$2