Skip to content

Instantly share code, notes, and snippets.

View dromer's full-sized avatar
🌴
On vacation

dreamer dromer

🌴
On vacation
View GitHub Profile
@dromer
dromer / liquidsoap.dockerfile
Last active December 30, 2022 16:06
alpine-liquidsoap-video
# LS build container
FROM alpine:edge as ls-build
RUN apk --no-cache add \
gstreamer \
gst-plugins-base \
gst-plugins-good \
gst-plugins-bad \
gst-plugins-ugly \
gst-libav \
# LS build container
FROM alpine:3.11 as ls-build
RUN apk --no-cache add \
opam \
make \
m4 \
ocaml-compiler-libs \
musl-dev \
automake \
@dromer
dromer / espmidi.cpp
Last active August 15, 2019 13:16
espmidi
#include <Arduino.h>
#include <MIDI.h>
#include <WiFi.h>
#include <WiFiUdp.h>
// try to do ipMIDI receive on the ESP32
// inspired by: http://www.instructables.com/id/MIDI-Piano-Lighting/?ALLSTEPS
MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI);
@dromer
dromer / oneliner.sh
Last active August 1, 2019 16:52
ffmpeg audio + static image to rtmp
ffmpeg -loop 1 -framerate 30 \
-i background_image_at_resolution.jpg \
-i http://domain.com:8000/audiostream \
-c:v libx264 \
-pix_fmt yuv420p \
-vf "drawtext=textfile=/home/dreamer/thetext:reload=1:fontfile=/home/dreamer/.fonts/BPmonoBold.ttf:y=h-line_h-10:x=w-mod(max(t-4.5\,0)*(w+tw)/10.5\,(w+tw)):fontcolor=00dc90:fontsize=40:shadowx=2:shadowy=2" \
-c:a aac \
-ar 44100 \
-f flv rtmp://user:pass@intergalactic.tv/show/leftover
[env:pokitto]
platform = nxplpc
framework = mbed
board = lpc11u68
;lib_extra_dirs =
; lib/Pokitto/
#!/bin/sh
echo "copy .bin location and press enter"
read BIN
dd bs=1024 conv=nocreat,notrunc if=$BIN of=/media/dreamer/CRP\ DISABLD/firmware.bin
umount /media/dreamer/CRP\ DISABLD
// Copyright 2016 DSP Synthesizers Sweden.
//
// Author: Jan Ostman
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU 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,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@dromer
dromer / statetest1.cpp
Created March 4, 2017 02:13
arduinojson test1
#include <Arduino.h>
#include <ArduinoJson.h>
const char *mySpaces[] = {
"test1",
"test2",
"test3"
};
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
//needed for library
#include "Freepin_WS2801.h"
ESP8266WiFiMulti WiFiMulti;
const char* ssid = "PIEMELS";
@dromer
dromer / mod2mp3.sh
Created March 29, 2016 21:56
convert mod files to mp3s
#! /bin/bash
for f in $(ls *.MOD);
do
xmp -o - -d wav "$f" | avconv -i - -b 320k "$f.mp3"
done