Skip to content

Instantly share code, notes, and snippets.

@nidico
nidico / lamson-logger.py
Last active December 14, 2015 10:59 — forked from jordansissel/run-lamson.py
This runs `lamson log` without daemonizing itself
from lamson import server, routing, utils
import sys, os
import logging
settings = utils.make_fake_settings('127.0.0.1', 8825)
settings.receiver.start()
@nidico
nidico / issue-migrate-bitbucket-to-github.py
Created September 24, 2012 21:00
Helper script for issue migration from Bitbucket to GitHub
#!/usr/bin/env python
"""
This script helps migrating issues from Bitbucket to GitHub.
It currently ignores milestones completly and doesn't care whether an issue is
open, new or on hold. As long as it's not closed it's considered open.
To use it, install python-bitbucket, PyGithub and ipdb.
@nidico
nidico / postgis.py
Created May 27, 2012 08:04 — forked from tokumine/postgis.py
Hacked imposm postgis.py to enable imports to work with PostGIS 2.0
# On OSX, this Imposm file is found at: /Library/Python/2.7/site-packages/imposm/db/postgis.py. YMMV
# Hack basically comments out all the elements relating to modifying the geometry_columns table.
# In PostGIS 2.0 this is a view and handled transparently.
# Copyright 2011 Omniscale (http://omniscale.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#