- SSH into the target machine
- Make a deploy_keys folder and change into it
mkdir ~/.ssh/deploy_keys
cd ~/.ssh/deploy_keys
- Create a new key pair
ssh-keygen -t rsa -b 4096 -C "[email protected]"
const cheerio = require('cheerio'); | |
const re = new RegExp('[1345]'); | |
const parseHtml = (html) => { | |
const $ = cheerio.load(html); | |
const trs = $('#result-card > div > table > tbody > tr'); | |
const results = []; | |
trs.each((trIdx, tr) => { | |
if (re.test(trIdx)) { |
const fetch = require('node-fetch'); | |
const { URLSearchParams } = require('url'); | |
const METHOD = 'POST'; | |
const URL = 'https://securelink.labmed.uw.edu/result'; | |
const getTestResultsAsHtml = async ({ dob, barcode }) => { | |
if (!(dob && barcode)) { | |
throw new Error('dob and code are required'); | |
} |
import cv2 | |
import imutils | |
from imutils.video import VideoStream | |
# replace this with the url generated by the Wyze app | |
rtsp_url = "rtsp://<camera_name>:<some_uuid>@<some_ip>/live" | |
vs = VideoStream(rtsp_url).start() | |
while True: |
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
- Generate a ssh key
Follow these steps to flash a pre-built Raspberry Pi image to an SD card. This image is established with everything documented in this original setup walkthrough. This install requires a MicroSD card with at least 32GB of storage. This will save you many hours of setup, specifically because you don't need to compile OpenCV from source.
- Raspberry Pi (Pi 3 or Pi Zero) and 32+GB MicroSD card.
- Pi 3:
- Ethernet Cable to plug in directly
- Another computer (Mac)
- Pi 3:
- If you don't have the ability to hook up ethernet, you will need the same peripherals as the Pi Zero.
A great set of video resources can be found here. Most of this setup process comes from these videos. This setup process should work fine for either a Pi 3 or a Pi Zero, but the peripherals needed will change depending on which you are setting up. If you would like to skip this entire setup process, and instead flash a pre-built image to your card that includes all of the setup detailed here, as well as a copy of OpenCV 3.3 and python virtualenvironments, check out this walkthrough instead.
- Download the newest version of Raspbian from The Raspberry Pi Org.
- Download a copy of The Unarchiver to extract the Raspbian
img
file. - Download a copy of Pi Filler from [I