docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker rmi -f $(docker images -qa) && docker volume rm $(docker volume ls -q) && docker network rm $(docker network ls -q)
Discover gists
Instructions for a mac on how to play with pyenv and poetry
Why both? Pyenv to manage multiple python versions. You can make virtualenvs with pyenv of course, but using poetry will simplify that process
# Install pyenv.
brew install pyenv
# Add pyenv initializer to shell startup script.
echo -e '\nif command -v pyenv 1>/dev/null 2>&1; then
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
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
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<CodeBlocksConfig version="1"> | |
<editor> | |
<colour_sets> | |
<ACTIVE_COLOUR_SET> | |
<str> | |
<![CDATA[modnokai night shift v2]]> | |
</str> | |
</ACTIVE_COLOUR_SET> | |
<ACTIVE_LANG> |
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
#!/usr/bin/python | |
#!/usr/bin/env python | |
import os | |
import glob | |
import time | |
import RPi.GPIO as GPIO | |
import sys, getopt | |
import decimal | |
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 | |
level=$1 | |
#echo "level given is $level" | |
if [ $# != 1 ]; then | |
echo "USAGE: $0 brightness_level (0 to 255)" | |
exit 1 | |
fi |
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
#!/usr/bin/python | |
# A quick hack of my button monitor script to monitor headlights and reverse lights to | |
# Dim the screen and switch to the reverse camera. | |
# I have not tested this... | |
# Remember, the switch or opto is switching to ground, so the logic is inverted... 0 = on 1 = off | |
# Also, you would run only one of these "Monitor" scripts. you can't be running RearviewMonitor.py AND LightMonitor.py | |
import RPi.GPIO as GPIO | |
import time | |
import subprocess, os |
NewerOlder