Skip to content

Instantly share code, notes, and snippets.

View sirhopcount's full-sized avatar

Adrian van Dongen sirhopcount

View GitHub Profile
@sirhopcount
sirhopcount / mopidy.liq
Created November 8, 2015 16:59 — forked from dz0ny/mopidy.liq
Gapless streaming for mopidy
#!/usr/bin/liquidsoap
set("log.file.path", "/dev/null")
set("log.stdout", true)
set("server.telnet", false)
set("harbor.bind_addr","0.0.0.0")
# tweak these values if you have lag, skipping, buffer underrun etc
# set("frame.duration",0.04)
# set("root.max_latency",60.)
@sirhopcount
sirhopcount / volume.rb
Created October 20, 2015 16:30 — forked from uriel1998/volume.rb
Set PulseAudio volume, mute, unmute, and change default sink (and automagically switch running audio streams) from the commandline
#!/usr/bin/ruby
#
# Moved to: https://github.com/uriel1998/volumerb
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-sa/3.0/.
#
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj);
@sirhopcount
sirhopcount / genhttplogs.rb
Last active September 11, 2015 08:09 — forked from fetep/genhttplogs.rb
apache log generator
#!/usr/bin/ruby
class IPGenerator
public
def initialize(session_count, session_length)
@session_count = session_count
@session_length = session_length
@sessions = {}
end
#
# Linux/arm 3.10.21 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
#!/bin/bash
# For Ubuntu. Probably works elsewhere too.
# This script downloads the Raspbian file system into ~/rpi/chroot-raspbian-armhf
# It also chroots you into the directory, so you can act as a Raspbian user.
# This was all taken from here: http://superpiadventures.com/2012/07/development-environment/
mkdir -p ~/rpi
cd ~/rpi
#!/bin/bash
# For Ubuntu.
# Cobbled together from:
# http://elinux.org/RPi_Kernel_Compilation
# http://mitchtech.net/raspberry-pi-kernel-compile/
# Assumes you already have https://github.com/raspberrypi/linux cloned at ~/rpi
cd ~/rpi/linux

#HOW-TO: Virtualize Raspian with Qemu

0.Workspace

mkdir -p ~/workspace/raspdev
cd ~/workspace/raspdev

1.Install Qemu

cd ~/raspi
git clone https://github.com/raspberrypi/linux.git
wget http://xecdesign.com/downloads/linux-qemu/linux-arm.patch
patch -p1 -d linux/ < linux-arm.patch
cd ~/raspi/linux
make ARCH=arm versatile_defconfig
https://web.archive.org/web/20131210001638/http://xecdesign.com/compiling-a-kernel/
https://web.archive.org/web/20131209235952/http://xecdesign.com/compiling-qemu/
https://web.archive.org/web/20131210001407/http://xecdesign.com/working-with-qemu/
https://web.archive.org/web/20131210001526/http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/
FROM litaio/ruby
MAINTAINER "Ted Wexler <[email protected]>"
RUN apt-get update
RUN apt-get install -y redis-server libssl-dev
RUN gem install lita
ADD conf/ /srv/lita-docker/
WORKDIR /srv/lita-docker
RUN bundle install
CMD service redis-server start && bundle exec lita start