Skip to content

Instantly share code, notes, and snippets.

View openbrian's full-sized avatar
I fight for the users.

Brian DeRocher openbrian

I fight for the users.
View GitHub Profile
@afeld
afeld / civictech.md
Last active May 7, 2024 04:21
civic tech jobs in NYC (or remote)
@jtyr
jtyr / corporate-linux-desktop-howto.md
Created November 3, 2015 17:09 — forked from anonymous/corporate-linux-desktop-howto.md
How to run Linux desktop in a corporate environment

How to run Linux desktop in a corporate environment

DISCLAIMER

Some of the practices described in this HOWTO are considered to be illegal as they often break internal corporate policies. Anything you do, you do at your own risk.

@jennyd
jennyd / falcon-logging-middleware.py
Last active February 11, 2024 22:09
Falcon logging middleware
import falcon
import logging
logger = logging.getLogger(__name__)
logger.addHandler(logging.FileHandler('test.log'))
logger.setLevel(logging.INFO)
class ResponseLoggerMiddleware(object):
def process_response(self, req, resp):
logger.info('{0} {1} {2}'.format(req.method, req.relative_uri, resp.status[:3]))
@cpliakas
cpliakas / ant-composer.xml
Created November 26, 2013 01:20
Apache Ant tagets for Composer commands.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Composer Targets" default="build">
<property name="builddir" value="${basedir}/build"/>
<property name="composer" value="${builddir}/composer.phar"/>
<target name="php-check">
<condition property="php" value="php">
<not>
<isset property="${php}"/>
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Translate DC building shapefiles with ogr2osm https://github.com/pnorman/ogr2osm
#
# Run:
# python ogr2osm/ogr2osm.py addresses.shp -t ogr2osm/translations/dcaddresses.py
#
# This will create a buildings.osm file ready to be opened, *reviewed* and uploaded with JOSM or Potlatch.
#
@andinocl
andinocl / dcbuildings.py
Last active December 17, 2015 12:09
Modified from ixbarth's https://gist.github.com/lxbarth/5537879 to create a custom translation for tags from DC GIS
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Translate DC building shapefiles with ogr2osm https://github.com/pnorman/ogr2osm
#
# Run:
# python ogr2osm/ogr2osm.py buildings.shp -t ogr2osm/translations/dcbuildings.py
#
# This will create a buildings.osm file ready to be opened, *reviewed* and uploaded with JOSM or Potlatch.
#