This file contains hidden or 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 | |
# A bash script for installing Python 3.10.2 on your Raspberry Pi. | |
# (c) 2022 Valentin B. / Midian T. E. | |
# | |
# Open your terminal and type the following command: | |
# sudo wget https://gist.githubusercontent.com/realSnosh/cfe29370d2205bd1ad296e7bc7c9b9ea/raw/raspberry_python.sh && chmod +x raspberry_python.sh && ./raspberry_python.sh | |
sudo apt-get update -y | |
sudo apt-get upgrade |
This file contains hidden or 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
# Dummy HTTPS server | |
# Taken from : https://gist.github.com/dragermrb/108158f5a284b5fba806 and other repos | |
import http.server | |
import cgi | |
import base64 | |
import json | |
from urllib.parse import urlparse, parse_qs | |
import ssl | |
import os | |
import socketserver |
This file contains hidden or 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 --debugger | |
set -e | |
BRANCH="master" | |
if grep -q BCM2835 /proc/cpuinfo; then | |
echo "RPI ZERO BUILD!" | |
RPI="1" | |
fi | |
[ -n "$1" ] && BRANCH=$1 |