Skip to content

Instantly share code, notes, and snippets.

View ixmatus's full-sized avatar

Parnell Springmeyer ixmatus

View GitHub Profile
@ixmatus
ixmatus / gist:4080625
Created November 15, 2012 19:23
pserve output
pyramid ❯❯❯ pserve development.ini (env: whoosh)
/Users/ixmatus/.virtualenvs/whoosh/lib/python2.7/site-packages/SQLAlchemy-0.7.7-py2.7-macosx-10.7-intel.egg/sqlalchemy/orm/properties.py:1208: SAWarning: No ForeignKey objects were present in secondary table 'pools'. Assumed referenced foreign key columns 'pools.active', 'pools.coconuts', 'pools.date_created', 'pools.date_modified', 'pools.id', 'pools.price', 'pools.removed', 'pools.service_id', 'pools.user_id' for join condition 'pools.removed = :removed_1' on relationship User.poolz
/Users/ixmatus/.virtualenvs/whoosh/lib/python2.7/site-packages/SQLAlchemy-0.7.7-py2.7-macosx-10.7-intel.egg/sqlalchemy/orm/properties.py:1199: SAWarning: No ForeignKey objects were present in secondary table 'pools'. Assumed referenced foreign key columns 'pools.active', 'pools.coconuts', 'poo
@ixmatus
ixmatus / gist:4080637
Created November 15, 2012 19:25
pip packages
mailsnake==1.3.0.0
mechanize==0.2.5
mercurial==2.3.1
nose==1.1.2
oauth2==1.5.211
pdfcrowd==2.3
protobuf==2.4.1
py-bcrypt==0.2
pyPdf==1.13
pycrypto==2.6
(setq-default tab-width 4)
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
;; Force 'other' modes to use the bsd style tabs (important!!!)
(setq c-default-style
'(((c-mode . "bsd") (c++-mode . "bsd") (other . "bsd"))))
;; Fix the worse part about emacs: indentation craziness
;; 1. When I hit the TAB key, I always want a TAB character inserted
<metal:main use-macro="view.global_template">
<div metal:fill-slot="header">
<h1>Dashboard</h1>
</div>
<div metal:fill-slot="content">
<p>This is a place holder.</p>
</div>
</metal:main>
<metal:main
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
use-macro="view.global_template">
<tal:block metal:fill-slot="header">
<h1>404 Not Found</h1>
</tal:block>
</metal:main>
;; ====================================================
;; Markdown Mode
;; ====================================================
(add-to-list 'auto-mode-alist '("\\.md$" . markdown-mode))
(add-hook 'markdown-mode-hook
(function (lambda ()
(writegood-mode)
(auto-fill-mode)
SELECT
COUNT(ranktrack_urls.id)
FROM
ranktrack_urls
JOIN users ON ranktrack_urls.user_id = users.id
JOIN pools ON pools.id = (
SELECT
id
FROM
pools
SELECT
COUNT(id)
FROM
ranktrack_urls
WHERE
daily_tracked = 1;
@ixmatus
ixmatus / gist:5372691
Created April 12, 2013 15:05
alfred vagrant
# -*- mode: ruby -*-
Vagrant::Config.run do |config|
config.vm.box = "quantal_uwsgi-py3k-amd64"
config.vm.box_url = "https://secure.whooshtraffic.com/static/downloads/quantal_uwsgi-py3k-amd64.box"
config.vm.host_name = "alfred"
config.vm.customize ["modifyvm", :id, "--memory", "512"]
config.vm.customize ["modifyvm", :id, "--cpus", "1"]