This file contains hidden or 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
# The next line updates PATH for the Google Cloud SDK. | |
source /Users/dwchiang/google-cloud-sdk/path.zsh.inc | |
# The next line enables zsh completion for gcloud. | |
source /Users/dwchiang/google-cloud-sdk/completion.zsh.inc |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"strings" | |
"strconv" | |
) | |
func main() { | |
grid := generateGrid() |
This file contains hidden or 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
# Get key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Add PPA | |
# Note: may need to manually specify "xenial" if zesty not supported | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update |
This file contains hidden or 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
CONFLICT (content): Merge conflict in platform/cc2538dk/contiki-main.c | |
CONFLICT (modify/delete): core/net/llsec/noncoresec/noncoresec.c deleted in ea1650d721c6c57e32f6235d7ee392e27b44200e and modified in HEAD. Version HEAD of core/net/llsec/noncoresec/noncoresec.c left in tree. | |
CONFLICT (add/add): Merge conflict in core/net/llsec/adaptivesec/coresec-strategy.c | |
CONFLICT (add/add): Merge conflict in core/net/llsec/adaptivesec/akes.c | |
CONFLICT (add/add): Merge conflict in core/net/llsec/adaptivesec/akes-nbr.h | |
CONFLICT (add/add): Merge conflict in core/net/llsec/adaptivesec/akes-nbr.c | |
CONFLICT (add/add): Merge conflict in core/net/llsec/adaptivesec/adaptivesec.h | |
CONFLICT (add/add): Merge conflict in core/net/llsec/adaptivesec/adaptivesec.c | |
CONFLICT (content): Merge conflict in core/net/ip64/ip64-ipv4-dhcp.c | |
CONFLICT (add/add): Merge conflict in core/lib/iq-seeder.c |
This file contains hidden or 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 | |
# Prerequisites: | |
# * You are inside the CHIP-SDK directory | |
# * CHIP-SDK/CHIP-buildroot is compiled and rootfs.tar is uncompressed -> | |
# CHIP-SDK/CHIP-buildroot/buildroot-rootfs | |
# Usage: | |
# sh build-rootfs.sh multistrap.conf | |
HERE="$PWD" |
This file contains hidden or 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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Buildroot 2015.08.1-00154-gb52c25c-dirty Configuration | |
# | |
BR2_HAVE_DOT_CONFIG=y | |
BR2_HOSTARCH_NEEDS_IA32_LIBS=y | |
# | |
# Target options | |
# |
This file contains hidden or 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
sudo ip link show wlan0 | |
sudo rfkill unblock wifi | |
sudo ip link set wlan0 up | |
echo "network={ | |
ssid=\"2.4GHz Home WiFi\" | |
#psk="poopoohotpot" | |
psk=6aa49bf0c3ed3c6c045c761c697eba918c55439ae91e4eb4b215a57df4d6e909 | |
}" > home_wifi.conf | |
wpa_supplicant -B -D wext -i wlan0 -c home_wifi.conf | |
sudo dhclient wlan0 |
This file contains hidden or 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
1. Clone the CHIP-SDK | |
1. Build a rootfs using CHIP-buildroot | |
3. Create NAND image from rootfs | |
4. Flash NAND image to CHIP Pro | |
git clone https://github.com/nextthingco/CHIP-SDK | |
cd ~/CHIP-SDK | |
./setup_ubuntu_14.04 # get dependencies | |
sudo apt-get install qemu-user-static live-build |
This file contains hidden or 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
import spidev | |
import time | |
spi = spidev.SpiDev() | |
spi.open(0,1) | |
spi.max_speed_hz = 5000; | |
led = False | |
while True: | |
if led is True: |
This file contains hidden or 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
sudo enter-chroot -n precise |
NewerOlder