swee / Original fastfile code (without templates)
0 likes
0 forks
1 files
Last active 2 months ago
Ripped out from my original PythonAnywhere Flask code
| 1 | from flask import Flask, send_file, request, redirect, abort, render_template, Response |
| 2 | import pyotp |
| 3 | import uuid |
| 4 | fastfile = """<body class="container text-white bg-dark"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"> |
| 7 | <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script> |
| 8 | <script src="https://kit.fontawesome.com/30bde606c1.js" crossorigin="anonymous"></script> |
| 9 | <style> |
| 10 | center { |
swee / Update forgejo script
0 likes
0 forks
1 files
Last active 2 months ago
Simple script to update Forgejo Server.
| 1 | # HOW TO USE THIS SCRIPT |
| 2 | # download this file and run |
| 3 | # python3 forgejoupdate.py |
| 4 | # |
| 5 | # If you aren't root, use sudo or doas. |
| 6 | # |
| 7 | # If you use an init system to run Forgejo, you can let this script automatically restart Forgejo for you |
| 8 | # (Assuming Forgejo's service name is `forgejo`) |
| 9 | # By passsing the arguments `systemd` or `openrc` |
| 10 | # |