Skip to content

Instantly share code, notes, and snippets.

View cronnelly's full-sized avatar

Michael Cronnelly cronnelly

View GitHub Profile
@cronnelly
cronnelly / image-analyse
Created October 23, 2012 19:30
Find PNGs which should be re-encoded to JPG
find . -type f -iname "*.png" -print0 | while read -d $'\0' fn; do os=$(stat -c%s "$fn"); js=$(gm convert -quality 80 "$fn" jpg:- | wc -c); ratio=$(echo "scale=3; ($js * 100) / $os" | bc); echo "$ratio% $js $os $fn"; done | sort -n
@cronnelly
cronnelly / client.sh
Last active August 29, 2015 14:05 — forked from nstielau/client.sh
#!/bin/bash
echo '{
"handlers": ["debug"],
"name": "push_woot_test",
"output": "woot!",
"status": 0
}' > /dev/udp/127.0.0.1/3030
@cronnelly
cronnelly / gist:9862978
Created March 29, 2014 21:04
anthracite error
Traceback (most recent call last):
File "/home/anthracite/anthracite/bottle.py", line 763, in _handle
return route.call(**args)
File "/home/anthracite/anthracite/bottle.py", line 1622, in wrapper
rv = callback(*a, **ka)
File "/home/anthracite/anthracite/bottle.py", line 1572, in wrapper
rv = callback(*a, **ka)
File "./anthracite-web.py", line 123, in events_timeline
(range_low, range_high) = backend.get_events_range()
File "/home/anthracite/anthracite/backend.py", line 272, in get_events_range
qemu-kvm (1.0+noroms-0ubuntu14.13) precise-security; urgency=medium
* SECURITY UPDATE: privilege escalation via REPORT LUNS
- debian/patches/CVE-2013-4344.patch: support more than 256 LUNS in
hw/scsi-bus.c, hw/scsi.h.
- CVE-2013-4344
-- Marc Deslauriers <marc.deslauriers@ubuntu.com> Tue, 28 Jan 2014 09:08:09 -0500
qemu-kvm (1.0+noroms-0ubuntu14.12) precise-proposed; urgency=low