Skip to content

Instantly share code, notes, and snippets.

@daniel-j
daniel-j / LEVEL1.005
Last active December 4, 2017 20:01
Jazz Jackrabbit 1 fixes
@daniel-j
daniel-j / JAZZ2.CFG
Last active December 4, 2017 18:33
Extra files for Jazz Jackrabbit 2 Lutris installers
@daniel-j
daniel-j / launch_updater.sh
Last active March 17, 2020 17:03
Linux updater for My Little Karaoke song and theme packages
#!/usr/bin/env bash
LD_LIBRARY_PATH="" ./mlk-updater.py --check
./launch.sh $@
@daniel-j
daniel-j / Battle.net.config
Last active September 4, 2017 13:44
Overwatch Lutris installer
{"Client": {"HardwareAcceleration": "false", "Sound":{"Enabled": "false"}, "OSDeprecationMessageLastSeenMS": "2504095679451"}}
@daniel-j
daniel-j / Makefile
Last active May 4, 2016 12:50
Pimoroni Displayotron Hat C++ API DRAFT
CXX = g++
CFLAGS = -Wall -g -std=c++11
#CFLAGS += -O3
LIBS = -lwiringPi
CORE = dothat
OBJS = main.o St7036.o Sn3218.o
all: $(CORE)
## local only ##
name: DX-Ball 2
slug: dx-ball-2-demo
game_slug: dx-ball-2
version: Windows Demo
runner: wine
## local only ##
files:
new-session
set -g status-left ""
set -g base-index 1
set -g status-right ' #[fg=blue]#H #[fg=magenta]%Y-%m-%d #[bold]%H:%M '
set -s escape-time 0
set-window-option -g xterm-keys on
set-option -g status-bg default
@daniel-j
daniel-j / piglow_fft.py
Last active January 14, 2024 02:28
PiGlow FFT audio visualizer | https://youtu.be/lJcLoAAGdoo
#!/usr/bin/env python
# by djazz, using various bits of code found over the web
# works with both python2 and python3
# requires: python-alsaaudio, python-numpy, python-smbus, piglow
# install piglow: curl get.pimoroni.com/piglow | bash
# usage:
# this script accepts raw audio in this format: S16LE 44100 kHz Mono
# script-that-outputs-audio | python piglow_fft.py
#!/bin/bash
music="/audio"
maxbitrate=160
find "$music" -type f -name '*.mp3' | while IFS='' read -r line || [[ -n "$line" ]]; do
bitrate=$(mp3info -r m -p %r "$line")
if [ "$bitrate" -lt "$maxbitrate" ]; then
echo "$bitrate" "$line"
fi
@daniel-j
daniel-j / _radio.sh
Created May 15, 2015 20:54
Galaxy News Radio (MPD + Python)
#!/bin/bash
cd ${0%/*}
sock="`pwd`/mpd/socket"
function addList {
LIST=`python2 create-show.py`
IFS=$'\n';