Skip to content

Instantly share code, notes, and snippets.

@paulswartz
paulswartz / keybase.md
Created September 4, 2017 11:41
Keybase Verification

Keybase proof

I hereby claim:

  • I am paulswartz on github.
  • I am paulswartz (https://keybase.io/paulswartz) on keybase.
  • I have a public key ASDKxzirigjyjBkM2qeO2iOZ-6K8lN7_HUTTV-00YvUyrQo

To claim this, I am signing this object:

@paulswartz
paulswartz / config.json
Last active August 29, 2015 14:12
EEC Data
{
"project": {
"name": "MA Child Care Finder",
"description": "<p>The MA Child Care Finder is a sample app built on Code for Boston's Finda platform, intended to show quick and dirty development of mapping applications using freely available, open-source tools.</p>",
"contact": "Please send feedback, ideas, and bug reports to our <a href=\"https://github.com/codeforboston/finda/issues\" target=\"_blank\">Github</a> page."
},
"map": {
"preview_attribute": "name",
"center": [
42.3725,
@paulswartz
paulswartz / config.json
Created November 10, 2014 02:16
LGBTQ data for Finda
{
"project": {
"name": "Finda",
"description": "<p>Finda is a generic \"find-a\" app for geographic datasets.</p>",
"contact": "Please send feedback, ideas, and bug reports to our <a href=\"https://github.com/codeforboston/finda/issues\" target=\"_blank\">Github</a> page."
},
"map": {
"preview_attribute": "organization_name",
"center":[42.3725, -71.1266],
"zoom":13,
@paulswartz
paulswartz / ssl_proxy.config
Created October 14, 2014 18:01
SSL Forwarding Proxy w/ nginx
# run as 'nginx -p . -c ssl_proxy.config'
daemon off;
http {
server {
listen localhost:8443;
server_name localhost;
ssl on;
ssl_certificate ../pooling-ui/certs/server.crt;
@paulswartz
paulswartz / scrape_all.sh
Created July 15, 2013 14:44
run all scrapy spiders
#!/bin/sh
pushd `dirname $0`/pluckr > /dev/null
OUTPUT_DIR=$1
for spider in `scrapy list`
do
echo Scraping $spider...
rm -r $spider.jl
scrapy crawl $spider --output=$spider.jl --loglevel=INFO
mv $spider.jl "$OUTPUT_DIR"
done
@paulswartz
paulswartz / gist:1817348
Created February 13, 2012 14:42
mg deploy
cd /var/www/miroguide/src/guide/ && git pull
cd /var/www/miroguide/src/guide/static
for name in css images js; do
~/s3sync/s3sync.rb --progress -r -v -p -d $name/ s3.miroguide.com:static/$name/;
done