webscripts
webscripts copied to clipboard
Scripts for manipulating my website
These are some scripts for manipulating my website
They're probably only useful to others as examples; they're pretty tied to the layout of my site.
Licensing: GNU GPL 2 or later
Usage
proc_schedule.py (obsolete)
python proc_schedule.py view
- shows a pretty table of upcoming events
proc_schedule.py add
- add an event
proc_schedule.py ical
- update the ical feed
- might want to call this after manual editing or running add
In general add is just for convenience; if you need to edit you should open it up in a text editor
makerss.py
This was named when all it did was make an rss feed. Now it also builds a large number of static html pages.
python makerss.py
- updates rss feed
- updates public_html/news/
comment_requester_wsgi.py (obsolete)
Run this as wsgi. It needs a facebook app created for it, and it will only pull comments from your user account. To get a token use:
python comment_requester_wsgi.py fbtoken
The other half of this is included as javascript on each of my blog posts. To see the latest of that, visit:
https://www.jefftk.com/p/conversation-with-gleb-of-intentional-insights?PageSpeed=off
And look down to the script that begins after
Server Setup
To migrate to a new server:
Get a new VPS. Make sure there's enough disk space for growth. Do this early, since they may take some time to verify identity and provision. Write down root password.
Add entry for new server to
~/.ssh/config
locallyssh in as root
copy over the crontabs manually
At VPS provider open up TCP 443 for HTTPS and UDP 60000-61000 for mosh at firewall
verify everything works with /etc/hosts overrides
switch dns over
wait 1+ weeks before taking down the old server