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
worker_processes auto; | |
rtmp_auto_push on; | |
events {} | |
error_log /dev/stdout info; | |
#daemon off; | |
rtmp { | |
server { | |
listen 1935; # 1935 is the rtmp port | |
listen [::]:1935; # ipv6 |
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
#!/usr/bin/python | |
# -*- coding:utf-8 -*- | |
# GET THE LIB AND PIC FILES FROM WAVESHARE | |
import sys | |
import os | |
picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic') | |
libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib') | |
if os.path.exists(libdir): |
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
version: '3' | |
services: | |
pufferpanel: | |
image: ghcr.io/oskardotglobal/pufferpanel:arm64 | |
#build: . | |
container_name: pufferpanel | |
restart: on-failure | |
environment: | |
- 'PUFFER_LOGS=/etc/pufferpanel/logs' # Location of your logs |
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
// for details about wiz local control, see: | |
// https://aleksandr.rogozin.us/blog/2021/8/13/hacking-philips-wiz-lights-via-command-line | |
/* | |
Motion-Sensing Warning Lights | |
This sketch will wait for a high input on D2 from the PIR motion | |
sensor, and then flash WiFi-connected lights to alert the room. | |
Circuit: |
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
"workbench.colorCustomizations": { | |
"[Theme (Italic)]": { | |
"editor.background": "#131210", | |
"selection.background": "#3d3833fe", | |
"tab.activeBackground": "#131210", | |
"activityBar.background": "#0d0c0bfe", | |
"sideBar.background": "#0d0c0bfe", | |
"sideBarSectionHeader.background": "#f0a0000e", | |
"sideBarSectionHeader.border": "#0d0c0bfe", |
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 the HID library and the Raspberry Pi Pico crate | |
extern crate hid; | |
extern crate rppal; | |
// Use the RPi Pico crate to access the Pico's hardware | |
use rppal::gpio::Gpio; | |
use rppal::gpio::InputPin; | |
use rppal::gpio::OutputPin; | |
use rppal::gpio::Level; | |
use rppal::gpio::Interrupt; |
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
# compiler caching tool for improved Rust build times | |
# in ~/.cargo/config.toml (or individual project's .cargo/config.toml) | |
[build] | |
rustc-wrapper = "sccache" | |
# around 2x faster Rust build times when used | |
# see https://twitter.com/0atman/status/1590118756226805762 | |
# https://github.com/mozilla/sccache |
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
server: | |
cache-max-ttl: 86400 | |
cache-min-ttl: 60 | |
directory: "/opt/unbound/etc/unbound" | |
edns-buffer-size: 1472 | |
interface: 0.0.0.0@53 | |
rrset-roundrobin: yes | |
username: "_unbound" | |
log-local-actions: no | |
log-queries: no |
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
version: "3" | |
networks: | |
private_network: | |
ipam: | |
driver: default | |
config: | |
- subnet: 10.2.0.0/24 | |
services: | |
unbound: | |
image: "mvance/unbound:latest" # for x86 arch |
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
version: "3" | |
networks: | |
private_network: | |
ipam: | |
driver: default | |
config: | |
- subnet: 10.2.0.0/24 | |
services: | |
unbound: | |
image: "mvance/unbound-rpi:latest" # or use "pedantic/unbound:latest" (which supports arm64) |