This file contains 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 picamera | |
import time | |
import os | |
import datetime as dt | |
def oldest_file_in_tree(rootfolder, extension=".avi"): | |
return min( | |
(os.path.join(dirname, filename) | |
for dirname, dirnames, filenames in os.walk(rootfolder) |
This file contains 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
#!/bin/bash | |
sudo apt update | |
sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update | |
sudo apt-get install bc git -y | |
rpi-source | |
git clone https://github.com/gnab/rtl8812au.git | |
cd rtl8812au | |
sed -i -e 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile | |
sed -i -e 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile |
This file contains 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
# Sample configuration file for retrogame. | |
# Really minimal syntax, typically two elements per line w/space delimiter: | |
# 1) a key name (from keyTable.h; shortened from /usr/include/linux/input.h). | |
# 2) a GPIO pin number; when grounded, will simulate corresponding keypress. | |
# Uses Broadcom pin numbers for GPIO. | |
# If first element is GND, the corresponding pin (or pins, multiple can be | |
# given) is a LOW-level output; an extra ground pin for connecting buttons. | |
# A '#' character indicates a comment to end-of-line. | |
# File can be edited "live," no need to restart retrogame! |