::  Posts  ::  RSS  ::  ◂◂RSS  ::  Contact

Website wrangling scripts

August 20th, 2010
ical, python, webscripts, tech  [html]
I have a strange approach to website management. My website is all static html, but some of it is generated by scripts that read other static html pages. The scripts manage two separate aspects of the website: The proc_schedule script reads in the main page's source and allows automated schedule item addition and ical-format feed generation. The makerss script reads in the huge news page and writes out more manageable news pages, arranged by date, tag, etc under news. It also, as of pretty recently, adds summaries of recent news as links on the main page.

I have shell aliases that make sure the appropriate publishing command is always run after I make changes:
  ~/.bashrc:
      ...
      alias ne="emacs -nw ~/public_html/news.html && python ~/bin/makerss.py"
      alias sv="python ~/bin/proc_schedule.py view"
      alias sa="python ~/bin/proc_schedule.py add && python ~/bin/proc_schedule.py ical"
      alias se="emacs -nw ~/public_html/index.html && python ~/bin/proc_schedule.py ical"
      ...
  

Comment via: facebook

Recent posts on blogs I like:

Europe and Asia are not Liberal or Conservative America

One frustrating thing coming from telling Americans to be more like democratic Asia, or even more like Europe, is that it is a) a political claim, that b) doesn’t neatly map onto partisanship or even intra-partisan political factions. Demographically, it …

via Pedestrian Observations March 29, 2020

Massachusetts should shut down immediately

We’ve been running 30x fewer tests than other states, and have been extremely tardy in responding to the Biogen outbreak.

via benkuhn.net March 15, 2020

Several grumpy opinions about remote work at Tailscale

As a "fully remote work" company, we had to make some choices about the technologies we use to work together and stay in touch. We decided early on - about the time we realized all three cofounders live in different cities - that we were going to…

via apenwarr March 11, 2020

more     (via openring)

More Posts:


  ::  Posts  ::  RSS  ::  ◂◂RSS  ::  Contact