View switch.rb
#!/bin/env ruby
require 'rjoystick'
require 'atem'
require 'mysql2'
$AUDIO_THRESHOLD = 858803 * 2
$IP = ""
$JOYSTICK = "/dev/input/js0"
# CREATE TABLE link_history (`id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, `start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `end_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00');
View icecast.xml
<location>Egham, UK</location>
<admin>com[DOT]insanityradio[AT]computing (reversed)</admin>
View ic3.rb
#!/usr/bin/env ruby
A quick and simple script to read "ic3" (Myriad) InstantCart files.
Brief overview of the really simple InstantCart file format:
Essentially a linear array of IC titles followed by 20 spaces for carts.
View makealias.rb
#!/usr/bin/env ruby
# Copyright (C) 2016 Jamie,
# Released under BSD (
require 'mysql2'
$config = {
:file => "/etc/courier/aliases/insanity",
:description => "Insanity Radio 103.2FM Alias Table",
View rotter.rb
#!/usr/bin/env ruby
# Super simple daemon to watch Rotter and ensure it doesn't crash
$config = {
:path => "/var/www/",
:timeout => 5,
:log => "/dev/null"
:pid => "/run/" }
View scroll.js
// ScrollEngine is a very small, simple, and efficient library for (smooth) scrolling on a web page.
// (C) 2015, released under the MIT licence -
var EXPORTS = {};
ScrollEngine = new function(){
var _global_id;
// Usage: ScrollEngine._scroll(x:number, y:number)
View autoban.rb
# A more efficient and documented autoban.rb
# Jamie - Released under MIT.
# This won't work with binary journal logs - the 'systemd/journal' gem doesn't work universally
$ssh_port = 1234
$network = ["", "", ""]
require "shellwords"