- added 'ssh' to boot partition for4 enabling ssh
apt updateapt upgraderaspi-config- setup wifirpi-update- to add the webcam driverssudo chown -R motion:motion /var/lib/motion
| /* | |
| * Simple script to show / work out why environment variables are not passing through | |
| * in some circumstances | |
| * | |
| * run this on a suitable "*nix" box like 'ARG=foobar amm environment-out.scala' | |
| */ | |
| import ammonite.ops._ | |
| import ammonite.ops.ImplicitWd._ | |
| def main() = { |
| package sample | |
| import akka.http.scaladsl.marshalling._ | |
| import akka.http.scaladsl.unmarshalling._ | |
| import akka.http.scaladsl.model.RequestEntity | |
| import org.scalatest._ | |
| import net.jcazevedo.moultingyaml._ | |
| case class Widget(name:String,color:String) |
| -- Logs begin at Thu 2016-01-21 11:21:24 UTC, end at Thu 2016-01-21 11:36:04 UTC. -- | |
| Jan 21 11:21:24 localhost systemd-journal[139]: Runtime journal (/run/log/journal/) is currently using 8.0M. | |
| Maximum allowed usage is set to 1.5G. | |
| Leaving at least 2.3G free (of currently available 15.6G of space). | |
| Enforced usage limit is thus 1.5G. | |
| Jan 21 11:21:24 localhost systemd-journal[139]: Runtime journal (/run/log/journal/) is currently using 8.0M. | |
| Maximum allowed usage is set to 1.5G. | |
| Leaving at least 2.3G free (of currently available 15.6G of space). | |
| Enforced usage limit is thus 1.5G. | |
| Jan 21 11:21:24 localhost kernel: Initializing cgroup subsys cpuset |
| { | |
| "friendlyName": "Any Machine Install CoreOS", | |
| "injectableName": "Graph.Any.InstallCoreOS", | |
| "tasks": [ | |
| { | |
| "label": "create-noop-obm-settings", | |
| "taskDefinition": { | |
| "friendlyName": "Create Any OBM settings", | |
| "injectableName": "Task.Obm.Any.CreateSettings", | |
| "implementsTask": "Task.Base.Obm.CreateSettings", |
| # | |
| # | |
| # | |
| # | |
| DOCKER_IDENTITY_FILE = .docker-identity | |
| # this makes a list of all the "docker directories" eg: image1 image2 | |
| docker_images := $(shell find . -maxdepth 2 -mindepth 2 -type f -name Dockerfile | xargs -L1 dirname | xargs -L1 basename ) |
| #------ below came from https://github.com/docker-library/golang/blob/3cdd85183c0f3f6608588166410d24260cd8cb2f/1.6/Dockerfile | |
| FROM buildpack-deps:jessie-scm | |
| # gcc for cgo | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| g++ \ | |
| gcc \ | |
| libc6-dev \ | |
| make \ |
| object BmpService { | |
| // A Router can mount multiple services to prefixes. The request is passed to the | |
| // service with the longest matching prefix. | |
| def service(implicit executionContext: ExecutionContext = ExecutionContext.global): HttpService = Router( | |
| "/api" -> apiService, | |
| ) | |
| def apiService(implicit executionContext: ExecutionContext) = HttpService { | |
| case req @ GET -> Root => |
| module move(x=0,y=0,z=0,rx=0,ry=0,rz=0) { translate([x,y,z])rotate([rx,ry,rz]) children(); } | |
| module rounded_cube(dimensions, rad) { | |
| x=dimensions[0]; | |
| y=dimensions[1]; | |
| z=dimensions[2]; | |
| hull() { |
| module move(x=0,y=0,z=0,rx=0,ry=0,rz=0) { translate([x,y,z])rotate([rx,ry,rz]) children(); } | |
| module cube_and_cylinder(dia=10, height=20) { | |
| // i often move everything to center .. and "transform/move" it from there | |
| // cubes and other shapes are "default" at 0,0,0, but cylinders are at 0,0 for center | |
| // so moving the cube to center aligns it with the cube | |
| move(rz=45) cube([dia,dia,dia],center=true); | |