This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put this to your PROJECT file, not global settings or SublimeLinter settings | |
// SublimeLinter-flake8 | |
"SublimeLinter": | |
{ | |
"@python": 2.7 | |
}, | |
// SublimePythonIDE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[uwsgi] | |
chdir = /srv/django/x | |
pythonpath = /srv/django/x/venv/bin/python | |
env = DJANGO_SETTINGS_MODULE=x.settings | |
module = django.core.handlers.wsgi:WSGIHandler() | |
processes = 4 | |
threads = 2 | |
virtualenv = /srv/django/x/venv | |
http = 0.0.0.0:8877 | |
static-map = /static=/srv/django/x/y/static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Utils for extracting information about bitcoin transactions. | |
""" | |
import json | |
from django_bitcoin.utils import bitcoind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======================== | |
Phishing site reporting | |
======================== | |
* http://www.google.com/safebrowsing/report_phish/ | |
Google ads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Explicitly give Distribute version 0.7.3 to bootstrap the automatic | |
# download of the latest setuptools, as one provided with the operating | |
# system is too old to run requirements.txt | |
- name: Create virtualenv | |
sudo: yes | |
pip: name=distribute version=0.7.3 virtualenv=/srv/django/yourproject/venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Fix broken autocomplete on Chrome. | |
Chrome tries to guess that username is before the password field on the form, | |
wrongly autocompleting the username to the amount field. | |
http://stackoverflow.com/questions/10938891/disable-autofill-in-chrome-without-disabling-autocomplete | |
{% endcomment %} | |
<input type="foobar" name="autocomplete_trap" id="autocomplete_trap" autocomplete="off" style="display: none;"> | |
{% if form.password %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install helium | |
Downloading/unpacking helium | |
Downloading helium-1.8.1.zip (13.2MB): 13.2MB downloaded | |
Running setup.py (path:/Users/mikko/code/trees/venv/build/helium/setup.py) egg_info for package helium | |
Downloading/unpacking selenium==2.43.0 (from helium) | |
Downloading selenium-2.43.0.tar.gz (2.6MB): 2.6MB downloaded | |
Running setup.py (path:/Users/mikko/code/trees/venv/build/selenium/setup.py) egg_info for package selenium |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""JSONB data utilities.""" | |
import datetime | |
from decimal import Decimal | |
import copy | |
import json | |
import iso8601 | |
from sqlalchemy import inspect | |
from sqlalchemy.orm.attributes import flag_modified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Give a new release version number by fair dice roll | |
Update setup.py with the new version number | |
Update CHANGES.txt with the version number and the release date | |
Commit changes to trunk | |
3. Release | |
Tag the release in the version control system | |
Checkout the tag into a clean folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.deliveryLocations = JSON.parse("{{delivery_locations|escape_js}}"); | |
</script> |
OlderNewer