Skip to content

Instantly share code, notes, and snippets.

View yunqu's full-sized avatar
🏠
Working from home

Yun Rock Qu yunqu

🏠
Working from home
View GitHub Profile
@yunqu
yunqu / ggc.sh
Created October 9, 2018 16:21
Start greengrass core service on board
# one time only
sudo tar -xzvf greengrass-OS-architecture-1.6.0.tar.gz -C /
sudo tar -xzvf GUID-setup.tar.gz -C /greengrass
cd /greengrass/certs/
sudo wget -O root.ca.pem http://www.symantec.com/content/en/us/enterprise/verisign/roots/VeriSign-Class%203-Public-Primary-Certification-Authority-G5.pem
# every time
cd /greengrass/ggc/core/
sudo ./greengrassd start
@yunqu
yunqu / install.sh
Created October 8, 2018 23:30
enable jupyter notebook/lab ipywidgets and plotly
# run as sudo
pip3 install --upgrade bqplotly
pip3 install --upgrade ipywidgets
pip3 install --upgrade plotly
@yunqu
yunqu / makefile
Last active August 8, 2018 22:45
Easy script to locate relevant files (with changing yocto machine name) in petalinux project
all:
@echo "1. Found $(YOCTO_IMAGE_NAME)"
@echo "2. Found $(YOCTO_RPM_NAME)"
PLNX_IMAGES_FOLDER := /opt/builds/PYNQ_20180606/sdbuild/build/Pynq-Z2/petalinux_project/build/tmp/deploy/images
PLNX_RPM_FOLDER := /opt/builds/PYNQ_20180606/sdbuild/build/Pynq-Z2/petalinux_project/build/tmp/deploy/rpm
YOCTO_IMAGE_NAME := $(shell find $(PLNX_IMAGES_FOLDER) \
-wholename '*/*.tgz' | grep -E '(.*)/modules-\1\.tgz' )
YOCTO_RPM_NAME := $(shell find $(PLNX_RPM_FOLDER) \
-wholename '*/*.rpm' | grep -E '(.*)/kernel-devsrc-1.0-r0.\1\.rpm' )
@yunqu
yunqu / wifi_connect.ipynb
Last active July 19, 2018 18:36
Useful notebook to connect to WiFi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yunqu
yunqu / eth0
Created July 19, 2018 18:18
Enable USB-Ethernet using USB port on PYNQ of Ultra96 board
# /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet dhcp