This Gist: http://is.gd/dokkudjango
DigitalOcean: https://www.digitalocean.com/
Dokku: https://github.com/progrium/dokku
Dokku-Postgres: https://github.com/Kloadut/dokku-pg-plugin
This Gist: http://is.gd/dokkudjango
DigitalOcean: https://www.digitalocean.com/
Dokku: https://github.com/progrium/dokku
Dokku-Postgres: https://github.com/Kloadut/dokku-pg-plugin
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| $ = jQuery | |
| queues = {} | |
| running = false | |
| queue = (name) -> | |
| name = 'default' if name is true | |
| queues[name] or= [] | |
| next = (name) -> |
| #!/bin/bash | |
| # Usage: | |
| # $ ./heroku-deploy.sh <app name> <git repo url> <heroku api key> | |
| APP="$1" | |
| REPO="$2" | |
| APIKEY="$3" | |
| echo "-----> Creating application $APP" | |
| curl -u ":$APIKEY" -d "app[name]=$APP" -X POST https://api.heroku.com/apps -s > /dev/null |
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
| Ext.override(Ext.form.Field, { | |
| setFieldLabel : function(text) { | |
| if (this.rendered) { | |
| this.el.down('.x-form-label').update(text); | |
| } | |
| this.fieldLabel = text; | |
| } | |
| }); |
| #!/usr/bin/env ruby | |
| # Usage | |
| # ./deploy [staging|production] <options> | |
| # | |
| # Options | |
| # -m or --maintenance - Put the application into maintenance mode | |
| # -b or --branch - deploy from a branch other than "master" | |
| if ['staging', 'production'].include? ARGV[0] |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.19370138645172119</real> | |
| <key>Green Component</key> | |
| <real>0.15575926005840302</real> |
| import logging | |
| l = logging.getLogger('django.db.backends') | |
| l.setLevel(logging.DEBUG) | |
| l.addHandler(logging.StreamHandler()) |