Skip to content

Instantly share code, notes, and snippets.

View mattyb's full-sized avatar

Matthew Brennan mattyb

View GitHub Profile
@mattyb
mattyb / Dockerfile
Created June 5, 2017 20:11
mistral docker
# https://github.com/openstack/mistral/blob/4.0.1/tools/docker/Dockerfile
FROM ubuntu:16.04
RUN apt-get -qq update
RUN apt-get install -y sudo git
RUN git clone https://github.com/openstack/mistral.git /opt/stack/mistral
RUN cd /opt/stack/mistral && git checkout 4.0.1
RUN /opt/stack/mistral/tools/docker/Dockerfile_script.sh
@mattyb
mattyb / gist:dfe5a7f56f0405c74baa
Last active August 29, 2015 14:22
reset boot2docker route
sudo route -n add -net 192.168.59.0/24 -interface vboxnet1
sudo route -n add -net 10.0.10.0/24 -interface vboxnet2
@mattyb
mattyb / server.py
Created February 25, 2015 04:48
ScatCat
#!/usr/bin/python3
import cherrypy
import RPi.GPIO as GPIO
import time
RELAY_IO = 22
SQUIRT_TIME = 0.5
ON_MODE = GPIO.LOW
VALID_USER = "MATTYBE"
@mattyb
mattyb / gist:756834
Created December 28, 2010 02:43
titanium picker won't display
warningTimeRow.addEventListener('click', function(e) {
try {
var root = Ti.UI.createView({});
var dialog = Ti.UI.createOptionDialog({
androidView:root,
options:null,
buttonNames: ['Set','Cancel'],
title:'Advanced warning'
});
var view = Ti.UI.createView({
conditions = {:source => @source}
# conditions = {"source_id" => @source.id}
if classlist
conditions[:object_class] = classlist
end
puts conditions.inspect
unresolved_ids = UnresolvedId.find(:all, :select => "id",
:conditions => conditions)