Mini Map Aide

File for https://minimapai.de
 avatarjbcooper
Public2 years ago4 snippets
index.html.lua
minimaphelp.html
crontab-file-for-minimapai.de.txt
Server-script-(run_gemmi.py)-for-minimapai.de.py

index.html

a year ago
index.html for minimapai.de
index.html.lua
<!DOCTYPE html><html><head><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="UTF-8">
<title>mini map aide - display protein electron density maps on mobile phone browsers - PDB and CCP4 map file viewer for proteins, nucleotides and ligands</title>
<script src='https://minimapai.de/fengari_web.js' type="text/javascript" async></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.155.0/three.min.js"></script>
<script src="https://minimapai.de/surfacenets.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/10.1.0/math.min.js"></script>
<style>
  #topbar {background-color:dodgerblue; position:relative; line-height:30px; font-size:22px; text-align:center; color:white;}
  body {margin:auto; font-size:16px; font-family:arial; color:white; background-color:#0C0A0A;}
  p {margin:0px;}
Help file for minimapai.de
minimaphelp.html
<html>
<head><meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mini map aide help</title>
<style>
body {margin:auto; font-size:16px; font-family:arial; color:dodgerblue; background-color:#0C0A0A;}
p {margin:10px;}
</style>
</head>
<body>
<p>
crontab-file-for-minimapai.de.txt
*/5  * * * * find /var/www/html/temp -type f -mmin +5 -exec rm "{}" \;
0 0 * * * certbot --webroot renew 
Server-script-(run_gemmi.py)-for-minimapai.de.py
#!/usr/bin/python3
import cgi
import os
import cgitb
import subprocess
print("Content-type:text/html\r\n\r\n") # needed
cgitb.enable()
form = cgi.FieldStorage()
pdbfile = form["pdbfile"]
pdbname = os.path.basename(pdbfile.filename)