Skip to content

Instantly share code, notes, and snippets.

View PhilipHarney's full-sized avatar

Philip Harney PhilipHarney

View GitHub Profile
#!/bin/bash
PROJECT_STARTER_CODE="https://raw.githubusercontent.com/raspberrypilearning/trained-vision-app/draft/en/resources/starter.py"
RASPBERRY_PI_PROJECT_STARTER_CODE="https://raw.githubusercontent.com/raspberrypilearning/trained-vision-app/draft/en/resources/raspberry_pi_starter.py"
ORIGINAL_USER=$1
echo "Original user: $ORIGINAL_USER"
# First, check if Python 3 is available. If not, terminate the script and ask the user to fix that.
if ! which python3
then
sudo -u $ORIGINAL_USER -- echo "Python3 does not appear to be installed on your system. Please install it and try running this script again."
exit 1
@PhilipHarney
PhilipHarney / image_identifer_setup.sh
Last active September 7, 2020 10:25
Starter code for Amazing Image Identifier
#!/bin/bash
PROJECT_STARTER_CODE="https://raw.githubusercontent.com/raspberrypilearning/image-identifier/draft/en/resources/project.py"
PROJECT_STARTER_IMAGE="https://raw.githubusercontent.com/raspberrypilearning/image-identifier/draft/en/resources/start.jpg"
ORIGINAL_USER=$1
echo "Original user: $ORIGINAL_USER"
# First, check if Python 3 is available. If not, terminate the script and ask the user to fix that.
if ! which python3
then
sudo -u $ORIGINAL_USER -- echo "Python3 does not appear to be installed on your system. Please install it and try running this script again."
exit 1
@PhilipHarney
PhilipHarney / .bash_profile
Last active December 15, 2015 20:58 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management