Edit the file at /flash/config:
mount -o remount,rw /flashvi /flash/config- append
device_tree_overlay=lirc-rpi mount -o remount,ro /flash
| # Debian 10 | |
| apt-get -y update | |
| apt-get -y upgrade --without-new-pkgs | |
| apt-get -y full-upgrade | |
| cat > /etc/apt/sources.list <<"EOF" | |
| deb http://deb.debian.org/debian/ bullseye main | |
| deb-src http://deb.debian.org/debian/ bullseye main | |
| deb http://security.debian.org/bullseye-security bullseye-security/updates main | |
| deb-src http://security.debian.org/bullseye-security bullseye-security/updates main |
| #!/sbin/openrc-run | |
| command="/root/bin/pia-wg.sh" | |
| CONFIGDIR="${CONFIGDIR:-/var/cache/pia-wg}" | |
| CONFIG="${CONFIG:-/etc/pia-wg/pia-wg.conf}" | |
| extra_started_commands="reload" | |
| depend() { |
| #!/usr/bin/env bash | |
| # Base16 - Gnome Terminal color scheme install script | |
| [[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Tango Modified" | |
| [[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="tango-modified" | |
| [[ -z "$DCONF" ]] && DCONF=dconf | |
| [[ -z "$UUIDGEN" ]] && UUIDGEN=uuidgen | |
| dset() { | |
| local key="$1"; shift |
| $ micropython uget.py key1=value1 key2=value2 key2=value3 | |
| {'url': 'http://httpbin.org/get?key2=value3&key1=value1', 'headers': {'Host': 'httpbin.org', 'Connection': 'close'}, 'args': {'key2': 'value3', 'key1': 'value1'}, 'origin': 'XXX.XXX.XXX.XXX'} | |
| $ micropython upost.py foo=bar spamm=42 | |
| {'files': {}, 'headers': {'Host': 'httpbin.org', 'Content-Length': '16', 'Content-Type': 'application/x-www-form-urlencoded', 'Connection': 'close'}, 'args': {}, 'form': {'spamm': '42', 'foo': 'bar'}, 'origin': 'XXX.XXX.XXX.XXX', 'data': '', 'json': None, 'url': 'http://httpbin.org/post'} |
| import dht | |
| import machine | |
| try: | |
| import usocket as socket | |
| except: | |
| import socket | |
| import ussl as ssl | |
| # a template of HTTP request to ThingSpeak to post temperature and humidity |
| // fine mesh | |
| fn = 1000; | |
| // epsilon for clean intersection | |
| eps = 0.1; | |
| module tube(inner=5, outer=10, angle=45, length=250){ | |
| // we want the thing in z direction, thus we rotate on x axis | |
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git
| DETAIL=120; | |
| module hullBetween() | |
| { | |
| // Combine the hull between and the original objects | |
| difference() | |
| { | |
| hull() | |
| { |