I hereby claim:
- I am tomgidden on github.
- I am gid (https://keybase.io/gid) on keybase.
- I have a public key ASA-MZNrERCaWZArGbZpB8uKyVbzBIG7Xr3JmR7kUZcilgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
get_iplayer --pvr 2>&1 | perl -ne 'if(/ERROR|WARNING/){$q=1;print $b;undef $b;}if($q){print $_;}else{$b.=$_;}' |
Replaced by https://github.com/tomgidden/page-turn-o-matic
Please make forks, improvements, pull requests there if you can improve on my work!
# Drop all unused Gearman jobs that match _v5 | |
while (gearadmin --drop-function `gearadmin --status | cut -f 1 | grep _v5 | xargs`) {} | |
# Drop all unserved functions | |
while (gearadmin --status -h g1 | egrep "\\s+0$" | cut -f 1 | xargs gearadmin -h g1 --drop-function) {} | |
# Stop and delete all running Docker containers | |
docker rm -f $(docker ps -q) | |
# Remove all docker images |
err=0 | |
while read -r url filename tail; do | |
wget -O "$filename" "$url" || err=1 | |
done < urls |
52.6.92.48 cognito-identity.us-east-1.amazonaws.com | |
52.94.216.48 aax-eu.amazon-adsystem.com | |
52.94.216.6 mads-eu.amazon.com | |
52.94.220.16 aax-eu.amazon-adsystem.com | |
52.94.218.7 aax-eu.amazon-adsystem.com | |
54.239.24.180 mobileanalytics.us-east-1.amazonaws.com | |
54.239.35.205 mads-eu.amazon.com | |
52.222.227.170 Images-na.ssl-images-amazon.com |
# This is to get around what appears to be a colossal flaw in Docker (Swarm) | |
# at the time of writing. | |
# | |
# I'm no expert by any stretch, but I've googled all I can think of, and I | |
# can't see a way to get Docker to _NOT_ listen on all interfaces when | |
# exposing a port. As a result, a private unsecured service like | |
# "Gearman" or "Memcached" gets published to the outside world... there's | |
# the option of _either_ having it available only to the Docker swarm, or | |
# to publish it to the entire world; there's no option to have it publish | |
# to other network interfaces, eg. to our own webservers that are not in |
/* | |
Disclaimer for Robert Penner's Easing Equations license: | |
TERMS OF USE - EASING EQUATIONS | |
Open source under the BSD License. | |
Copyright © 2001 Robert Penner | |
All rights reserved. | |
#!/usr/bin/env python3 | |
import copy | |
from types import SimpleNamespace | |
from icalendar import Calendar | |
from pytz import timezone, utc | |
from dateutil.rrule import * | |
from dateutil.tz import tzoffset | |
import datetime | |
import email.utils |
PRV ?= ~/.ssh/id_rsa | |
PUB ?= $(PRV).pub | |
clean: | |
rm -f *.enc *.key *.keyenc *.dec *.sh | |
# Encryption | |
$(PUB).pkcs8: $(PUB) | |
ssh-keygen -e -f $< -m PKCS8 > $@ |