Skip to content

Instantly share code, notes, and snippets.

@daniel-j
daniel-j / JAZZ2.CFG
Last active Dec 4, 2017
Extra files for Jazz Jackrabbit 2 Lutris installers
@daniel-j
daniel-j / launch_updater.sh
Last active Mar 17, 2020
Linux updater for My Little Karaoke song and theme packages
View launch_updater.sh
#!/usr/bin/env bash
LD_LIBRARY_PATH="" ./mlk-updater.py --check
./launch.sh $@
@daniel-j
daniel-j / Battle.net.config
Last active Sep 4, 2017
Overwatch Lutris installer
View Battle.net.config
{"Client": {"HardwareAcceleration": "false", "Sound":{"Enabled": "false"}, "OSDeprecationMessageLastSeenMS": "2504095679451"}}
@daniel-j
daniel-j / Makefile
Last active May 4, 2016
Pimoroni Displayotron Hat C++ API DRAFT
View Makefile
CXX = g++
CFLAGS = -Wall -g -std=c++11
#CFLAGS += -O3
LIBS = -lwiringPi
CORE = dothat
OBJS = main.o St7036.o Sn3218.o
all: $(CORE)
View dx-ball-2-demo.yml
## local only ##
name: DX-Ball 2
slug: dx-ball-2-demo
game_slug: dx-ball-2
version: Windows Demo
runner: wine
## local only ##
files:
View tmux.conf
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
View piglow_fft.py
#!/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
View bitratescan.sh
#!/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
Galaxy News Radio (MPD + Python)
View _radio.sh
#!/bin/bash
cd ${0%/*}
sock="`pwd`/mpd/socket"
function addList {
LIST=`python2 create-show.py`
IFS=$'\n';
View 2048.c.yml
name: "2048.c"
version: git
runner: linux
game_slug: "2048-c"
game:
exe: "/usr/bin/gnome-terminal"
args: -e "$GAMEDIR/2048"
files: