This gist contains:
README.md # disk prep and safety notes
install.sh # creates sparsebundles, mounts them, installs LaunchDaemon
uninstall.sh # removes LaunchDaemon and detaches mounts; preserves sparsebundles
| function BenchmarkSuite() as Object | |
| this = { | |
| runs: 3 | |
| } | |
| this.benchmark = sub(description as String, versions as Object, context as Object, iterations = 10000 as Integer, runs = 3 as Integer) | |
| print "----- " description "(" iterations " iterations) -------------------------------------------" | |
| t = CreateObject("roTimespan") | |
| for r = 1 to runs |
This is largely based off of this article by Hulu and their roku-dev-cli tool.
Requirements:
The main requirement is a Mac with 2 available network interfaces WIFI <-> WIFI, LAN <-> WIFI, etc. This should work on other platforms as well but isn't covered here.
Setup
The first thing we need is Homebrew. If you've never used it before it's a great package manager for macOS that makes installing programs easier. Open Terminal and paste
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
and hit enter
Roku provides the leading operating system for TV. We design the firmware and cloud services to run optimally across a wide range of devices. When developing on Roku OS, it's important for your channel(s) to perform across our wide range of products.
Sections:
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| import java.nio.ByteBuffer; | |
| import android.os.AsyncTask; | |
| import android.util.Log; |