Skip to content

Instantly share code, notes, and snippets.

View etchalon's full-sized avatar

Jack Shedd etchalon

View GitHub Profile
Alexandria Ocasio-Cortez’s upset primary victory has produced a huge amount of punditry about the supposed radicalization of the Democratic party, how it’s going to hurt the party because her positions won’t sell in the Midwest (and how well would Steve King’s positions sell in the Bronx?), etc., etc.. But I haven’t seen much about the substance of the policies she advocates, which on economics are mainly Medicare for All and a federal job guarantee.
So here’s what you should know: the policy ideas are definitely bold, and you can make some substantive arguments against them. But they aren’t crazy. By contrast, the ideas of Tea Party Republicans are crazy; in fact, Ocasio-Cortez’s policy positions are a lot more sensible than those of the Republican mainstream, let alone the GOP’s more radical members.
Since Ocasio-Cortez is being compared to Dave Brat, who unseated Eric Cantor, consider this: Brat favors a constitutional amendment forcing a balanced budget every year, which 96 percent of economists think i

Keybase proof

I hereby claim:

  • I am etchalon on github.
  • I am jshedd (https://keybase.io/jshedd) on keybase.
  • I have a public key whose fingerprint is 43D6 F2ED AFC0 02D9 D574 9C85 3E95 56A2 74A9 2842

To claim this, I am signing this object:

@etchalon
etchalon / tasks.py
Created August 6, 2013 15:29
EC2 + Boto + Fabric
def create_new_fetcher():
conn = EC2Connection(settings.AWS_ACCESS_KEY_ID, settings.AWS_SECRET_ACCESS_KEY)
image = conn.get_image(settings.AWS_FETCHER_IMAGE_ID)
new_reservation = image.run(key_name='zumur', security_groups=['zumur.fetcher'], instance_type='t1.micro')
new_instance = new_reservation.instances[0]
conn.create_tags([new_instance.id], {"Name": 'Fetcher', 'zumur.role':'fetcher'})
return True
@task()
def cycle_fetchers():
@etchalon
etchalon / messtools.rb
Created May 23, 2013 20:36
Install Mess Tools
require 'formula'
class Messtools < Formula
head 'https://[email protected]/thisismess/mess-tools.git', :revision => 'c8c742734869b334afe4177c1df4420e7fda61ff'
def install
bin.install('bin/django-init')
end
end
@etchalon
etchalon / gist:4493752
Last active October 28, 2018 07:03
Query String alteration template tag for Django.
"""
Query String manipulation filters
"""
import logging
from django import template
from django.http import QueryDict
from django.utils.translation import ugettext as _
"""
SSL Middleware
Stephen Zabel
This middleware answers the problem of redirecting to (and from) a SSL secured path
by stating what paths should be secured in urls.py file. To secure a path, add the
additional view_kwarg 'SSL':True to the view_kwargs.
For example
"""
SSL Middleware
Stephen Zabel
This middleware answers the problem of redirecting to (and from) a SSL secured path
by stating what paths should be secured in urls.py file. To secure a path, add the
additional view_kwarg 'SSL':True to the view_kwargs.
For example