Webcam parts:
- Raspberry Pi Zero W Rev 1.1
- Raspberry Pi Camera v2 (8-megapixel)
- Raspberry Pi High Quality Camera (12.3-megapixel)
- Raspbian Buster Lite 2020-02-13
Webcam works with:
- Windows 10
- Windows 10 "Camera" app
#!/bin/sh | |
if [ "$UID" -ne 0 ]; then | |
echo "This script needs to be executed as root" | |
exit 1 | |
fi | |
vendor_id="0x3000" # Valve | |
product_id="0x28DE" | |
serial_number="$(dmidecode -s system-serial-number)" # The Steam Deck's serial number |
#include "Arduino.h" | |
#include "esp_camera.h" | |
#include "ESPAsyncWebServer.h" | |
typedef struct { | |
camera_fb_t * fb; | |
size_t index; | |
} camera_frame_t; | |
#define PART_BOUNDARY "123456789000000000000987654321" |
#!/bin/sh | |
set -e | |
#set -x | |
CONFIGFS="/sys/kernel/config" | |
GADGET="$CONFIGFS/usb_gadget" | |
VID="0x0525" | |
PID="0xa4a2" | |
SERIAL="0123456789" |
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
<macrodef name="destroy" description="Destroys all metadata in an organization - Revision 23"> | |
<attribute name="username" /> | |
<attribute name="password" /> | |
<attribute name="serverurl" default="https://login.salesforce.com" /> | |
<attribute name="tempDir" default="temp/destroy" description="Directory to write metadata." /> | |
<attribute name="apiVersion" default="43.0" /> | |
<sequential> |
/** | |
* This plugin will emit events with GPS coordinates | |
* | |
* const gps = new GPSPlugin(); | |
* gps.on('gps', ({ lat, lng, alt }) => console.log(lat, lng, alt)); | |
* MINI.addPlugin(gps); | |
*/ | |
class GPSPlugin { | |
/** |
#!/bin/bash | |
set -e | |
# Send a private message to someone on slack | |
# from the command line. | |
# Print a usage message and exit. | |
usage(){ | |
local name=$(basename "$0") |
This Gist is similar to https://gist.github.com/noteed/8656989 which uses Open vSwitch instead of Tinc.
Download the install.sh
script and run it:
> https://gist.githubusercontent.com/noteed/11031504/raw/install.sh
#!/bin/bash | |
usage() { | |
cat << EOF | |
Usage: $0 [OPTION]... COMMAND | |
Execute the given command in a way that works safely with cron. This should | |
typically be used inside of a cron job definition like so: | |
* * * * * $(which "$0") [OPTION]... COMMAND | |
Arguments: |