Skip to content

Instantly share code, notes, and snippets.

View cronnelly's full-sized avatar

Michael Cronnelly cronnelly

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cronnelly on github.
  • I am cronnelly (https://keybase.io/cronnelly) on keybase.
  • I have a public key ASC0iYpOGQVtE8DWLyW1ukBW-u2x2KuU9207CigbYFhTvAo

To claim this, I am signing this object:

@cronnelly
cronnelly / -
Created December 13, 2017 22:06
test
@cronnelly
cronnelly / install_ffmpeg.sh
Last active October 26, 2016 07:24 — forked from smac89/install_ffmpeg.sh
Install latest version of ffmpeg on Ubuntu
#!/bin/bash
sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
# Create a dir where the rest of the sources will live
mkdir ~/ffmpeg_sources
@cronnelly
cronnelly / gist:98345100afe21840267270da3283b371
Created April 5, 2016 18:00
lxcbr0 is being replaced by lxdbr0
┌─────────────────────────────────────────────────────────┤ Configuring lxd ├──────────────────────────────────────────────────────────┐
│ │
│ lxcbr0 is being replaced by lxdbr0 │
│ │
│ With this package upgrade LXD is moving away from the LXC provided lxcbr0 bridge and moving to its own lxdbr0 bridge. │
│ │
│ The reason for this switch is:
@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
@cronnelly
cronnelly / gist:8382688
Created January 12, 2014 09:39
A crude test for UDP packet loss, with bash and netcat
# On server:
COUNT=0; while true; do nc -ulw0 1234 > /dev/null; echo $((++COUNT)); done
# On client:
for i in $(seq 6000); do echo "hello" >/dev/udp/<server>/1234; sleep 0.1; done
# Fix PuTTY's bad ACS handling in Unicode
set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@'
# Start from 1
set -g pane-base-index 1
set -g base-index 1
# Colours
set-option -g default-terminal screen-256color
@cronnelly
cronnelly / node-upstart-template.conf
Last active December 17, 2015 17:09
Template Upstart script for Clock's Node.js applications, using nave.
author "Michael Cronnelly"
env NODE_ENV=testing
env NODE_START=/var/application/<site>/server.js
env NODE_VERSION=0.10.7
env PORT=3310
setuid node
env HOME=/home/node