Skip to content

Instantly share code, notes, and snippets.

View pwhelan's full-sized avatar

Phillip Whelan pwhelan

View GitHub Profile
@pwhelan
pwhelan / DJTTMFPCUEMASTER-SLIPMODE.js
Created May 30, 2012 06:41
DJTTMFPCUEMASTER-SLIPMODE
// Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function(from, to) {
var rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;
return this.push.apply(this, rest);
};
// Remove a vlue from an array
Array.prototype.removeValue = function(value)
{
@pwhelan
pwhelan / proxyapp.rb
Created July 5, 2012 08:09
ProxyApp for connecting Pow to PHP
require 'net/http'
class ProxyApp
def call(env)
begin
request = Rack::Request.new(env)
headers = {}
env.each do |key, value|
if key =~ /^http_(.*)/i
headers[$1] = value
05 00 <- alpha identifier
06 07
91 65 69 14 00 10 f5
0b 60
51 <-
TP-MTI: 01
TP-RD: 00
TP-VPF: 10
TP-SRR: 00
# cloud config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDG8X2VlbiNMCcesk12bI9drHPgKg9K38K2hUG0TX1fNP3nWmbFzxYbnQZRryIUYOXlIVR2NIRR/CCJEbArwo6BOX9MpTHFSZuFPvLOq3zqLGxMsmGPjTeT3C3hXaEia7YRFLZey7q3P3c58BHWh07qge4Eg3k0xWjIT7uNzfzDq7PyAAOp7Eme5Kb7Sj13xXzSrdx6IfZu6VtHRCi0qQ6iYjLO4vKyC07iYrxM+tv0l6K8YmPMFfU+OL/Sq7CQnEGBmXRrrH/iDlqTvkq5oDchDZuJJcQfgulMKq7Guo3JjgRErrsKdWEVp1da27ED8ggXsSQNp7MaxU59OVN88viL
@pwhelan
pwhelan / MixxxAPI.js
Created May 2, 2012 22:50
Mixxx API (engine.X wrapper)
function MixxxEngineCall(group, control, value)
{
if ( typeof value != 'undefined' )
print("[S] " + group + "::" + control + "=" + value);
else
print("[G] " + group + "::" + control);
if ( typeof value != 'undefined' )
engine.setValue(group, control, value);
@pwhelan
pwhelan / nginx.conf
Created October 14, 2021 15:59
Fluent Bit Nginx Exporter Metrics instructions
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
location /status {
stub_status;
@pwhelan
pwhelan / Dockerfile
Created April 23, 2020 20:26
Dockerfile for compiling z/OS GCC cross compiler
# https://blog.the-leviathan.ch/?p=1344
FROM ubuntu:18.04
RUN apt-get -y update && \
apt-get install -y git build-essential flex bison texinfo rsync
RUN git clone -b v5.3.12 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
RUN cd linux && \
make ARCH=s390 config && \
[playlist]
X-GNOME-Title=Full Moon - RAINBOWS!
NumberOfEntries=15
File1=Music/Psytrance/2014/Metta - In Love - 2014 - FLAC/07 - Metta & Glosolalia - Rainbow Reconnection.flac
Title1=Rainbow Reconnection
File2=Music/Psytrance/2013/VA - Twisted Mind - 2013 - FLAC/07 - Sick Noise vs Inner Coma - Amino Acid.flac
Title2=Amino Acid
File3=Music/Psytrance/2013/VA - Contaminated Entities - 2013 - FLAC/09 - Antagon - Atmosphere.flac
Title3=Atmosphere
File4=Music/Psytrance/2013/VA - Twisted Mind - 2013 - FLAC/11 - Loose Connection vs Sick Noise - Pulsar.flac