Skip to content

Instantly share code, notes, and snippets.

View jlisee's full-sized avatar

Joseph Lisee jlisee

  • Glydways
  • Falls Church, VA
  • 04:21 (UTC -04:00)
  • LinkedIn in/jlisee
View GitHub Profile
@jlisee
jlisee / dummy-web-server.py
Created May 13, 2016 15:32 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost

Architectural Questions

  • Are responsibilities well defined?
  • Are the collaborations well defined?
  • Is coupling minimized?
  • Can you identify potential duplication?
  • Are interface definitions and constraints acceptable?
  • Can modules access needed data—when needed?
@jlisee
jlisee / archive.html
Last active December 23, 2015 02:08 — forked from rey/archive.html
Updated Jekyll archive template. Reduced code duplication and heading bug fix.
<section id="archive">
{% capture this_year %}{{ site.time | date: '%Y' }}{% endcapture %}
{% capture post_year %}{{ site.posts[0].date | date: '%Y' }}{% endcapture %}
{% if this_year == post_year %}
<h3>This year's posts</h3>
{% else %}
<h3>{{ post_year }}</h3>
{% endif %}
@jlisee
jlisee / mysql_backup.py
Created September 9, 2012 22:33 — forked from ajessup/mysql_backup.py
Simple python script for performing and optionally encrypting a rolling backup a mysql DB
#!/usr/bin/env python
'''
Conduct rolling backups of a mysql DB server.
Daily backups are kept for the previous 7 days,
weekly for the previous 4 weeks, and monthly backups
for the previous 12 months.
Run ./mysql_backup --help for usage instructions