Skip to content

Instantly share code, notes, and snippets.

View bobvanluijt's full-sized avatar

Bob van Luijt bobvanluijt

View GitHub Profile
@bobvanluijt
bobvanluijt / Weave - devices.json
Created February 6, 2017 21:08
Weave - devices
{
"Device": {
"externalTypeName": "clouddevices.Device",
"properties": {
"certFingerprint": {
"description": "The HTTPS certificate fingerprint used to secure communication with device..",
"type": "string"
},
"channel": {
"description": "Device notification channel description.",
@bobvanluijt
bobvanluijt / Weave - event.json
Created February 6, 2017 21:11
Weave - event
{
"Event": {
"externalTypeName": "clouddevices.Event",
"properties": {
"commandPatch": {
"description": "Command-related changes (if applicable).",
"properties": {
"commandId": {
"description": "ID of the affected command.",
"type": "string"
@bobvanluijt
bobvanluijt / Weave - modelManifest.json
Created February 6, 2017 21:14
Weave - modelManifest
{
"ModelManifest": {
"description": "Model manifest info.",
"externalTypeName": "clouddevices.ModelManifest",
"properties": {
"allowedChildModelManifestIds": {
"description": "For gateways, a list of device ids that are allowed to connect to it.",
"items": {
"type": "string"
},
@bobvanluijt
bobvanluijt / Weave - personalizedInfos.json
Created February 6, 2017 21:17
Weave - personalizedInfos
{
"PersonalizedInfo": {
"externalTypeName": "clouddevices.PersonalizedInfo",
"properties": {
"id": {
"default": "me",
"description": "Unique personalizedInfo ID. Value: the fixed string \"me\".",
"type": "string"
},
"kind": {
@bobvanluijt
bobvanluijt / Weave - registrationTickets.json
Created February 6, 2017 21:22
Weave - registrationTickets
{
"RegistrationTicket": {
"externalTypeName": "clouddevices.RegistrationTicket",
"properties": {
"creationTimeMs": {
"description": "Creation timestamp of the registration ticket in milliseconds since epoch UTC.",
"format": "int64",
"type": "string"
},
"deviceDraft": {
@bobvanluijt
bobvanluijt / Weave - rooms.json
Created February 6, 2017 21:25
Weave - rooms
{
"Room": {
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"placeId": {
@bobvanluijt
bobvanluijt / Weave - places.json
Created February 7, 2017 12:16
Weave - places
{
"Place": {
"properties": {
"id": {
"type": "string"
},
"invitation": {
"$ref": "#/definitions/PlaceInvitation"
},
"member": {
@bobvanluijt
bobvanluijt / Install hyperGAN with: Install CUDA and Tensorflow 1.0 on Ubuntu 16.04.sh
Last active October 4, 2021 11:32
Install hyperGAN with: CUDA and Tensorflow 1.0 on Ubuntu 16.04 + Python 3.5
#!/bin/bash
# Tensorflow installation bash for Ubuntu 16.04 for x86_64 - Python 2.7
# Set locale (comment when not needed)
sudo sh -c "echo 'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' >> /etc/environment"
# Install CUDA
sudo apt-get update -y
sudo apt-get upgrade -y
@bobvanluijt
bobvanluijt / Android Things - device step I.sh
Last active March 30, 2017 01:57
Android Things - device step I
#!/bin/sh
###
# Make sure the locale settings are in order: http://askubuntu.com/a/229512/119583
# Tested on Ubuntu 16.04 LTS
###
##
# Run from /usr/local
##
@bobvanluijt
bobvanluijt / dorel-io-static-server.go
Last active July 13, 2017 17:34
Idea for SPA server instead of NGINX - Dorel IO
/**
* Idea for SPA server instead of NGINX - Dorel IO
*
* You can run this locally: `$ go run dorel-io-static-server.go`
* The concept is that the Wordpress API is asked if the page exsists, if yes, it sends the correct meta data and status code.
* If you try: localhost:8080/foobar you will get a 404
* If yountry: localhost:8080/about-us (or another exsisting page) you will get a 200 with the correct metadata
*
* Bower compontents is always skipped and shown.
*