stuff that was sitting around uncommitted
parent
98c7f78a5b
commit
70bb2dd9af
|
@ -28,6 +28,20 @@ SITE_NAME = 'tilde.town'
|
|||
|
||||
app = Flask('~cgi')
|
||||
|
||||
app.config['DEBUG'] = True
|
||||
# tension between this and cfg function...
|
||||
|
||||
conf = ConfigFactory.parse_file('cfg.conf')
|
||||
|
||||
#logfile = conf.get('logfile', '/tmp/cgi.log')
|
||||
#logging.basicConfig(filename=logfile, level=logging.DEBUG)
|
||||
logging.basicConfig(filename='/tmp/cgi.log', level=logging.DEBUG)
|
||||
|
||||
app.config['DATA_DIR'] = conf['guestbook_dir']
|
||||
app.config['TRELLO_EMAIL'] = conf['trello_email']
|
||||
app.config['MAILGUN_URL'] = conf['mailgun_url']
|
||||
app.config['MAILGUN_KEY'] = conf['mailgun_key']
|
||||
|
||||
@lru_cache(maxsize=32)
|
||||
def site_context():
|
||||
return get_data()
|
||||
|
@ -56,6 +70,7 @@ def get_random():
|
|||
|
||||
@app.route('/guestbook', methods=['GET'])
|
||||
def get_guestbook():
|
||||
logging.debug(app.config)
|
||||
logging.debug('loading guestbook')
|
||||
data_dir = app.config['DATA_DIR']
|
||||
# TODO sort by timestamp
|
||||
|
@ -121,20 +136,4 @@ def post_helpdesk():
|
|||
return redirect('/helpdesk?status={}&desc={}'.format(status, desc))
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.config['DEBUG'] = True
|
||||
# tension between this and cfg function...
|
||||
|
||||
conf = ConfigFactory.parse_file('cfg.conf')
|
||||
|
||||
logfile = conf.get('logfile', '/tmp/cgi.log')
|
||||
logging.basicConfig(filename=logfile, level=logging.DEBUG)
|
||||
|
||||
app.config['DATA_DIR'] = conf['guestbook_dir']
|
||||
app.config['TRELLO_EMAIL'] = conf['trello_email']
|
||||
app.config['MAILGUN_URL'] = conf['mailgun_url']
|
||||
app.config['MAILGUN_KEY'] = conf['mailgun_key']
|
||||
|
||||
logging.debug("Running with data_dir=", app.config['DATA_DIR'])
|
||||
logging.debug(app.config)
|
||||
|
||||
app.run()
|
||||
|
|
|
@ -136,7 +136,7 @@ def tdp():
|
|||
# TDP format data
|
||||
data = {
|
||||
'name': 'tilde.town',
|
||||
'url': 'http://tilde.town',
|
||||
'url': 'https://tilde.town',
|
||||
'signup_url': 'http://goo.gl/forms/8IvQFTDjlo',
|
||||
'want_users': True,
|
||||
'admin_email': 'nks@lambdaphil.es',
|
||||
|
|
|
@ -47,15 +47,15 @@
|
|||
|
||||
<h3>stuff you can do here</h3>
|
||||
<ul>
|
||||
<li>geocities style hosting</li>
|
||||
<li>static html hosting</li>
|
||||
<li>internal irc network</li>
|
||||
<li>private usenet constellation</li>
|
||||
<li>internal mail</li>
|
||||
<li>command line / unix tutelage</li>
|
||||
<li>generate random poetry (with <a href="https://github.com/nathanielksmith/prosaic">prosaic</a>)</li>
|
||||
<li>make ascii art</li>
|
||||
<li>host twitter bots</li>
|
||||
<li>participate in our <a href="https://twitter.com/tildetown">communal twitter</a></li>
|
||||
<li>generate random poetry <em>(under construction)</em></li>
|
||||
<li>private usenet constellation (temporarily disabled)</li>
|
||||
</ul>
|
||||
|
||||
<a style="text-decoration:none" href="/cgi/random">
|
||||
|
@ -198,6 +198,77 @@ orators, singers, musicians to come!
|
|||
<td valign="top" width="40%">
|
||||
<h3>news</h3>
|
||||
|
||||
<h4>recent outage</h4>
|
||||
<p><sub><em>Thu Aug 11 17:58:00 UTC 2016</em></sub></p>
|
||||
<p>
|
||||
There was recently an issue with AWS that blocked off HTTP, UDP,
|
||||
and outbound traffic from the town. The outage lasted about 24
|
||||
hours and is now resolved.
|
||||
</p>
|
||||
|
||||
<h4>tilde.town in the washington post</h4>
|
||||
<p><sub><em>Mon May 9 21:36:08 UTC 2016</em></sub></p>
|
||||
<p>
|
||||
Our entry on <a href="http://brutalistwebsites.com/tilde.town/">brutalist websites</a> was mentioned on a
|
||||
<a href="https://www.washingtonpost.com/news/the-intersect/wp/2016/05/09/the-hottest-trend-in-web-design-is-intentionally-ugly-unusable-sites/">
|
||||
Washington Post blog</a>. Apparently, tilde.town is
|
||||
both ugly and hard to use ^_^ Let ~vilmibm know if this is the
|
||||
case...
|
||||
</p>
|
||||
<h4>https support</h4>
|
||||
<p><sub><em>Mon Mar 28 06:25:27 UTC 2016</em></sub></p>
|
||||
<p>
|
||||
Thanks to the gracious help of user
|
||||
<a href="/~demophoon">~demophoon</a>
|
||||
the town is now accessible over https! just hit up
|
||||
<a href="https://tilde.town">https://tilde.town</a>
|
||||
in ye olde browsere to check it out.
|
||||
</p>
|
||||
<h4>irc client fixed for all users</h4>
|
||||
<p><sub><em>Tue Feb 23 16:31:58 PST 2016</em></sub></p>
|
||||
<p>
|
||||
the <code>irc</code> and <code>chat</code> commands are now
|
||||
fixed for all users. in the course of this fix i accidentally
|
||||
deleted everyone's weechat config. if you had a bunch of stuff
|
||||
in your weechat config that you really want back let me know and
|
||||
i can check the backups.
|
||||
</p>
|
||||
|
||||
<h4>irc client outage</h4>
|
||||
<p><sub><em>Fri Feb 19 13:39:25 PST 2016</em></sub></p>
|
||||
|
||||
<p>
|
||||
because of Reasons, the <code>irc</code> and <code>chat</code> scripts are broken. you can still use irc, you just have to run the following:
|
||||
<pre>
|
||||
irc
|
||||
/set irc.look.temporary_servers on
|
||||
/quit
|
||||
irc
|
||||
</pre>
|
||||
|
||||
and you should be good to go until this is fixed.
|
||||
</p>
|
||||
|
||||
<h4>Restart today</h4>
|
||||
<p><sub><em>Fri Feb 19 12:07:09 PST 2016</em></sub></p>
|
||||
|
||||
<p>
|
||||
Thanks to <a
|
||||
href="https://googleonlinesecurity.blogspot.com/2016/02/cve-2015-7547-glibc-getaddrinfo-stack.html">this
|
||||
glibc vulnerability</a> the town needs to restart to install
|
||||
security updates.
|
||||
</p>
|
||||
<p>
|
||||
remember your tilde.town apocalypse training:
|
||||
<ul>
|
||||
<li>ssh (or mosh) back in to restore your tmux (or screen) session / rejoin irc</li>
|
||||
<li>restart any bots / MUDs / services you don't have set up via cron</li>
|
||||
<li>stare not over long into the abyss lest it stares back into you</li>
|
||||
<li>observe all posted signage for proper apocalypse evacuation strats</li>
|
||||
<li>hug a tree, out your crushes</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<h4>Systems status</h4>
|
||||
<p><sub><em>Wed Oct 14 13:49:12 PDT 2015</em></sub></p>
|
||||
<p>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>{{site_name}} guestbook</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{site_url}}/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://tilde.town/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{site_name}} guestbook</h1>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> {{ site_name }} help desk </title>
|
||||
<link rel="stylesheet" href="{{ site_url }}/style.css">
|
||||
<link rel="stylesheet" href="https://tilde.town/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ site_name }} help desk</h1>
|
||||
|
|
Reference in New Issue