Skip to content

Instantly share code, notes, and snippets.

View mrpjevans's full-sized avatar

PJ Evans mrpjevans

View GitHub Profile
[Unit]
Description=Minecraft Server
After=network.target
[Service]
User=minecraft
Nice=1
KillMode=none
SuccessExitStatus=0 1
ProtectHome=true
@mrpjevans
mrpjevans / test_motors.py
Created June 27, 2022 14:59
test_motors.py
# CamJam EduKit 3 - Robotics
# Motor Test Code
import time # Import the Time library
from gpiozero import CamJamKitRobot # Import the CamJam GPIO Zero Library
robot = CamJamKitRobot()
# Turn the motors on
robot.forward()
@mrpjevans
mrpjevans / mopidy.conf
Created July 15, 2020 13:16
Sample mopidy.conf file for MagPi tutorials
[http]
# Make sure the web interface can be accessed by the local network
hostname = 0.0.0.0
[audio]
# Direct audio to the DAC, not HDMI
output = alsasink
# The File extension isn't of much use, so we can disable it
[file]
@mrpjevans
mrpjevans / fr_deps.md
Last active January 6, 2024 21:17
Installation process for facial recognition dependancies

Step 1: Install dependancies

sudo apt -y update && sudo apt -y full-upgrade
sudo apt install build-essential \
    cmake \
    gfortran \
    git \
    wget \
 curl \