Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
| #!/usr/bin/python | |
| # A simple Python application for controlling a relay board from a Raspberry Pi | |
| # The application uses the GPIO Zero library (https://gpiozero.readthedocs.io/en/stable/) | |
| # The relay is connected to one of the Pi's GPIO ports, then is defined as an Output device | |
| # in GPIO Zero: https://gpiozero.readthedocs.io/en/stable/api_output.html#outputdevice | |
| import sys | |
| import time |
| #!/usr/bin/env python | |
| """Get TAI-UTC difference in seconds for a given time using tzdata. | |
| i.e., find the number of seconds that must be added to UTC to compute | |
| TAI for any timestamp at or after the given time[1]. | |
| >>> from datetime import datetime | |
| >>> import leapseconds | |
| >>> leapseconds.dTAI_UTC_from_utc(datetime(2005, 1, 1)) | |
| datetime.timedelta(seconds=32) |
| def weeksecondstoutc(gpsweek,gpsseconds,leapseconds): | |
| import datetime, calendar | |
| datetimeformat = "%Y-%m-%d %H:%M:%S" | |
| epoch = datetime.datetime.strptime("1980-01-06 00:00:00",datetimeformat) | |
| elapsed = datetime.timedelta(days=(gpsweek*7),seconds=(gpsseconds+leapseconds)) | |
| return datetime.datetime.strftime(epoch + elapsed,datetimeformat) | |
| weeksecondstoutc(1811,164196.732,16) ## --> '2014-09-22 21:36:52' |
| # Supports the default controls in the way I thought was logical. | |
| # | |
| # A is jump | |
| # B is sneak | |
| # X is drop | |
| # Y is chat | |
| # Scroll with the DPAD | |
| # RT is left click | |
| # LT is right click | |
| # Left joystick is WASD |
| *.acn | |
| *.acr | |
| *.alg | |
| *.aux | |
| *.bak | |
| *.bbl | |
| *.bcf | |
| *.blg | |
| *.brf | |
| *.bst |