Skip to content

Instantly share code, notes, and snippets.

View AndyA's full-sized avatar

Andy Armstrong AndyA

View GitHub Profile
@AndyA
AndyA / docker-registry.conf
Created May 16, 2019 16:54
Apache config to reverse proxy a docker registry with letsencrypt certs
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName "registry.example.com"
DocumentRoot /opt/registry.example.com/www
CustomLog "|/usr/bin/rotatelogs -L /opt/registry.example.com/logs/apache.access_log.current /opt/registry.example.com/logs/apache.access_log 86400" combined
ErrorLog "|/usr/bin/rotatelogs -L /opt/registry.example.com/logs/apache.error_log.current /opt/registry.example.com/logs/apache.error_log 86400"
ProxyRequests off

Keybase proof

I hereby claim:

  • I am andya on github.
  • I am hexten (https://keybase.io/hexten) on keybase.
  • I have a public key ASDT3-W40SkI5INpx1vcKXjAq1YN5obX3krdeyRsETeMUwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am AndyA on github.
  • I am hexten (https://keybase.io/hexten) on keybase.
  • I have a public key whose fingerprint is 3D72 1D72 2D57 6B7E 9936 C86B 8499 1288 BAF9 573D

To claim this, I am signing this object:

#!/usr/bin/env perl
use v5.10;
use autodie;
use strict;
use warnings;
my $str = "Arts: Culture Fix: Classical Architecture";
{
"1955-08-23 (missing items) - FINAL" : null,
"Armistice Day 1924 (missing items) - FINAL" : null,
"Asian Network - FINAL" : "bbcan",
"BBC Knowledge - FINAL" : "bbcknowledge",
"BBCOne-(london) - SCOTLAND - FINAL" : null,
"BBCOne-(london) - WALES - FINAL" : null,
"BBCTV - Text - BBC2 test transmissions - FINAL" : null,
"Bournemouth (missing items) - FINAL" : "6bm",
"Early Radio - FINAL" : null,
#!/bin/bash
#
# Finds all *.flac files and produces corresponding *.m4a ALAC versions
#
# Usage: flac2alac <file|dir>...
{
for obj in "$@"; do
if [ -f "$obj" ]; then
echo "$obj"
from twisted.internet import reactor
from txosc import osc
from txosc import dispatch
from txosc import async
import time
import piglow
def pulse():
for x in range(100):
Array
(
[0] => WP_User Object
(
[data] => stdClass Object
(
[ID] => 1
[user_login] => Admin
[user_pass] => $P$BycuIEu4.rjFYQGZLwlS45CGbcZcTr1
[user_nicename] => admin
@AndyA
AndyA / rez.html
Last active October 28, 2015 09:41
Show screen resolution
<!DOCTYPE html>
<html>
<head>
<title>How bigz dat ting</title>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>
$(function() {
function rez() {
var aw = window.screen.availWidth;
var ah = window.screen.availHeight;
+------------+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
| date | service | message |
+------------+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------+
| 1927-01-01 | NULL | We're aware that there is a problem with the dates of some or all of the programmes on this page and are working to resolve it. |
| 1927-01-02 | NULL | We're aware that there is a problem with the dates of some or all of the programmes on this page and are working to resolve it. |
| 1927-01-03 | NULL | We're aware that there is a problem with the dates