Skip to content

Instantly share code, notes, and snippets.

View DrewBarfieldProductions's full-sized avatar

Drew Barfield Productions DrewBarfieldProductions

View GitHub Profile
@DrewBarfieldProductions
DrewBarfieldProductions / WiFiWebserver.ino
Created September 19, 2016 23:42
Intel Edison sketch that reports the current temperature.
#include <SPI.h>
#include <WiFi.h>
char ssid[] = "YOUR_SSID"; // your network SSID (name)
char pass[] = "YOUR_PASS"; // your network password
int keyIndex = 0; // your network key Index number (needed only for WEP)
int status = WL_IDLE_STATUS; //
const int pinTemp = A0; //
const int B = 3975; //
@DrewBarfieldProductions
DrewBarfieldProductions / runtests
Created August 25, 2016 19:07
Output from the Google Fuchsia 'runtests' Builtin command
> runtests
CASE bad_syscall_tests [STARTED]
bad_syscall_test [RUNNING] [PASSED]
CASE bad_syscall_tests [PASSED]
SUCCESS! All test cases passed!
====================================================
CASES: 1 SUCCESS: 1 FAILED: 0
====================================================
@DrewBarfieldProductions
DrewBarfieldProductions / fuchsia_build.sh
Last active October 9, 2023 20:26
BASH script to build and boot Google Fuchsia
#!/bin/sh
clear
# Preparing the build environment
# https://github.com/fuchsia-mirror/manifest#prerequisites
# https://github.com/fuchsia-mirror/magenta/blob/master/docs/getting_started.md#preparing-the-build-environment
sudo apt-get install golang git-all curl texinfo libglib2.0-dev autoconf libtool libsdl-dev build-essential
# Creating a new checkout (https://github.com/fuchsia-mirror/manifest#creating-a-new-checkout)
curl -s https://raw.githubusercontent.com/vanadium/go.jiri/master/scripts/bootstrap_jiri | bash -s fuchsia
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-9).
build-essential is already the newest version (12.1ubuntu2).
libsdl1.2-dev is already the newest version (1.2.15+dfsg1-3).
libtool is already the newest version (2.4.6-0.1).
texinfo is already the newest version (6.1.0.dfsg.1-5).
libglib2.0-dev is already the newest version (2.48.1-1~ubuntu16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.