This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/insanity-rotter.pid" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
=begin | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<icecast> | |
<location>Egham, UK</location> | |
<admin>com[DOT]insanityradio[AT]computing (reversed)</admin> | |
<limits> | |
<clients>100000</clients> | |
<sources>1000</sources> | |
<threadpool>10</threadpool> | |
<queue-size>524288</queue-size> | |
<client-timeout>30</client-timeout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
require 'rjoystick' | |
require 'atem' | |
require 'mysql2' | |
$AUDIO_THRESHOLD = 858803 * 2 | |
$IP = "10.0.0.1" | |
$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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Absolute Highs] | |
Auto detect highpass filter=0 | |
Before Multibands=After Multibands | |
Difference=0 | |
Effect strength=1 | |
Hear=0 | |
Highpass filter follows Delossifier=1 | |
Highs - 1 Band (7.85 BETA008)=0 | |
Highs - Band distance=0.5 | |
Highs - Block during collection of shape=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs').promises; | |
(async function () { | |
let files = process.argv.slice(2); | |
let tableColumns = {} | |
for (var file of files) { | |
let input = String(await fs.readFile(file)) | |
let lines = input.split('\n'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deepMerge(a, b, path = []) { | |
if (typeof a != 'object') return b; | |
for (var key in b) { | |
if (b[key] === undefined) { | |
delete a[key]; | |
continue; | |
} | |
if ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Africa/Abidjan": "Greenwich Standard Time", | |
"Africa/Accra": "Greenwich Standard Time", | |
"Africa/Addis_Ababa": "E. Africa Standard Time", | |
"Africa/Algiers": "W. Central Africa Standard Time", | |
"Africa/Asmera": "E. Africa Standard Time", | |
"Africa/Bamako": "Greenwich Standard Time", | |
"Africa/Bangui": "W. Central Africa Standard Time", | |
"Africa/Banjul": "Greenwich Standard Time", | |
"Africa/Bissau": "Greenwich Standard Time", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CF_ZONE_ID=x | |
curl -vk "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/dns_records?per_page=10000" \ | |
-H "X-Auth-Email: $LEXICON_CLOUDFLARE_USERNAME" \ | |
-H "X-Auth-Key: $LEXICON_CLOUDFLARE_TOKEN" \ | |
| jq -rc ".result[] | select( .name | startswith(\"_acme-challenge.$CERTBOT_DOMAIN\")) .id" \ | |
| grep . | tr '\n' '\0' \ | |
| xargs -0 -n1 -I{} \ | |
curl -vk "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/dns_records/{}" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<audio id="localVideo" playsinline autoplay controls muted></audio> | |
<audio id="remoteVideo" playsinline autoplay controls></audio> | |
<div class="box"> | |
<button id="startButton">Start</button> | |
<button id="callButton">Call</button> | |
<button id="hangupButton">Hang Up</button> |
OlderNewer