Skip to content

Instantly share code, notes, and snippets.

View bobvanderlinden's full-sized avatar

Bob van der Linden bobvanderlinden

  • The Netherlands
View GitHub Profile
@bobvanderlinden
bobvanderlinden / getdownloadurl.js
Created March 26, 2016 14:26
A PhantomJS script that gets a download url for the Windows 10 ISO from Microsoft.com
var system = require('system');
var edition = system.args[1] || 'windows10';
var language = system.args[2] || 'english';
var architecture = system.args[3] || '64';
var page = require('webpage').create();
/* Global helper functions */
@bobvanderlinden
bobvanderlinden / default.nix
Last active November 16, 2015 21:39
Nix file for building Machinekit (cmake version)
with import <nixpkgs> { };
#pkgs.clangStdenv.mkDerivation rec {
pkgs.stdenv.mkDerivation rec {
name = "machinekit";
src = ./.;
nativeBuildInputs = [
cmake
pkgconfig
];
@bobvanderlinden
bobvanderlinden / setup.py
Last active August 29, 2015 14:27
machinetalk-protobuf setup.py
#!/usr/bin/env python
from distutils.core import setup
setup(name="machinetalk-protobuf",
version="1.0",
description="Protobuf Python modules for Machinetalk",
url="https://github.com/machinekit/machinetalk-protobuf",
# TODO: Get this into a named package (machinetalk_protobuf)
# so that the modules (like message_pb2) aren't installed as global modules.
@bobvanderlinden
bobvanderlinden / README.md
Created June 26, 2015 11:09
NixOS npm install experiment

Usage

nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
// This code illustrates the setup of a WebRTC call using WSP
// This code is only intended for illustration purposes
// It lacks details like exception and error handling
// In practice this code should run partly on the server and partly on the client.
// The WSP protocol must be used between the servers of the caller and the server of the callee
// For the communication between the server and the client any protocol could be used.
// If none has been established yet, ik makes sense of course to use the same WSP mechanism here as well.
// This sample code does not show this communication between the server and the client though
var invitation = {
@bobvanderlinden
bobvanderlinden / allpins.bbio
Last active August 29, 2015 14:15
A config-pin file that configures all available pins to GPIO output
overlay cape-universal
overlay cape-univ-emmc
overlay cape-univ-hdmi
P8.3 low
P8.4 low
P8.5 low
P8.6 low
P8.7 low
P8.8 low
P8.9 low