This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--usb", "on"] | |
vb.customize ["modifyvm", :id, "--usbehci", "on"] | |
vb.customize ["modifyvm", :id, "--usbxhci", "on"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script validates the websocket client handshake functionality, described in RFC6455 and provided by MicroPython's | |
# "websocket_helper" module, against the websocket endpoint for AWS' IoT MQTT-based service. For more information about | |
# this service, see https://aws.amazon.com/iot-platform/. Two key considerations with respect to integrating with AWS' | |
# service is that AWS requires the use of TLS/SSL (i.e. HTTPS) and the use of a cryptographically sound authentication | |
# mechanism. While AWS supports several authentication mechanisms, this script uses the AWS SigV4 digital signature | |
# mechanism described at http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html and incorporates code | |
# based on the associated SigV4 Python-based example code. | |
# | |
# For this script to succeed, the changes included in pull request #3420 must be applied (see | |
# https://github.com/micropython/micropython/pull/3420). Further, the following keys in this script must be replaced |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This example script requires the MicroPython changes in the following branches: | |
# | |
# https://github.com/ccooper21/micropython/tree/websocket-client-support | |
# https://github.com/ccooper21/micropython-lib/tree/umqtt.simple-websocket-support | |
import usocket as socket | |
import utime as time | |
from websocket import websocket | |
from umqtt.simple import MQTTClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install "git" | |
sudo apt-get update | |
sudo apt-get -y install git | |
# Clone the Hyperledger Fabric base image repository. It would be preferable | |
# to use the "/tmp" directory as the destination, since this repository is no | |
# longer needed once the base image has been built. However, this is | |
# problematic because one of the scripts that builds the base image removes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash -c ' | |
<%= "export http_proxy=\"#{knife_config[:bootstrap_proxy]}\"" if knife_config[:bootstrap_proxy] -%> | |
exists() { | |
if command -v $1 &>/dev/null | |
then | |
return 0 | |
else | |
return 1 |