You will need a Raspberry Pi 3 B(+) with a microSD card running RetroPie (or Raspbian).
-
Update Raspbian.
$ sudo apt-get update && sudo apt-get upgrade -y
In terminal, upgrade TinkerOS.
sudo apt update && apt upgrade -y
sudo apt dist-upgradeInstall avahi-daemon
In terminal, upgrade Raspbian.
sudo apt update && sudo apt dist-upgrade -yNext, use the raspi-config tool to change some default system settings.
sudo raspi-config
| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:i:1}" | |
| case $c in | |
| [a-zA-Z0-9.~_-]) printf "$c" ;; |
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)| from line import LineClient, LineGroup, LineContact, LineMessage | |
| import os | |
| import sys | |
| import re | |
| import ast | |
| from curve.ttypes import OperationType, TalkException | |
| try: | |
| # client5 = LineClient("teambarrsackbot5@gmail.com", "321321Ab", authToken="EiLW77LqJc7usR6vB5z9.7x9TsSw19TOlLNYRF2HOUq.sCuQ9zBZ90djqjN0dkBubuPcT2WDi5mG5razGdrcrgI=", com_name="Aero5", is_mac=False) | |
| # client5 = LineClient(os.environ['LINE_ULTRON_LOGIN'], os.environ['LINE_ULTRON_PASS'], com_name="Aero5", is_mac=False) |
| import os | |
| import sys | |
| import logging | |
| from flask import Flask | |
| app = Flask(__name__) | |
| if 'DYNO' in os.environ: | |
| app.logger.addHandler(logging.StreamHandler(sys.stdout)) | |
| app.logger.setLevel(logging.ERROR) |
| <VirtualHost *:{PORT}> | |
| ServerName www.yourdomain.com | |
| ServerAdmin mail@domain.com | |
| DocumentRoot /var/www/yourdir/ | |
| <Directory /var/www/yourdir> | |
| Options Indexes FollowSymLinks | |
| AllowOverride all | |
| Order allow,deny |