Skip to content

Instantly share code, notes, and snippets.

View alex5250's full-sized avatar
🇺🇦
#StandWithUkraine

Alex Zaslavskis alex5250

🇺🇦
#StandWithUkraine
View GitHub Profile
@alex5250
alex5250 / configure.sh
Last active June 25, 2024 16:00
Installing an rp2040 command to linux.
#!/bin/bash
# Define colors
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[0;33m"
BLUE="\033[0;34m"
MAGENTA="\033[0;35m"
CYAN="\033[0;36m"
WHITE="\033[0;37m"
[Unit]
Description=FPV Processing Daemon
After=network.target
[Service]
ExecStart=/usr/bin/dvr-processing.sh
WorkingDirectory=/root
StandardOutput=/var/log/video_processing/output.log
StandardError=/var/log/video_processing/error.log
Restart=always
#!/bin/bash
# Directory containing the video files
VIDEO_DIR="/media/drive/Футажи/DJI FPV DVRS/DCIM/100MEDIA"
LOG_FILE="/var/log/video_processing/log.log"
PROGRESS_FILE="/var/log/video_processing/process"
PROCESSED_DIR="/media/drive/Футажи/DJI FPV DVRS/DCIM/100MEDIA/with_OSD"
# Ensure the processed directory exists
mkdir -p "$PROCESSED_DIR"
@alex5250
alex5250 / gist:d106770d3f746b060506cdd9bd685551
Last active July 7, 2023 17:50
Configure RPi Pico SDK configure on Fedora 38 Linux
#!/bin/bash
# Exit on error
set -e
if grep -q Raspberry /proc/cpuinfo; then
echo "Running on a Raspberry Pi"
else
echo "Not running on a Raspberry Pi. Use at your own risk!"
fi