Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| bootstrapAngular = -> | |
| $('[ng-app]').each -> | |
| module = $(this).attr('ng-app') | |
| angular.bootstrap(this, [module]) | |
| $(document).on('page:load', bootstrapAngular) |
| App.AccountEditRoute = Ember.Route.extend({ | |
| setupController: function(controller) { | |
| controller.set('content', this.get('currentUser')); | |
| } | |
| }); |
| # config.ru for Pow + Wordpress, based on http://stuff-things.net/2011/05/16/legacy-development-with-pow/ | |
| # added hackery to work around wordpress issues - Patrick Anderson ([email protected]) | |
| # added rubygems, replaced script_path with script from path_parts, added to_return to fix return error - Paul Cook | |
| # clearly this could be cleaner, but it does work | |
| # added rewrite rule for WordPress Multi Site - Per Soderlind (see also http://soderlind.no/archives/2012/12/02/wordpress-and-pow/) | |
| require 'rubygems' | |
| require 'rack' | |
| require 'rack-legacy' | |
| require 'rack-rewrite' |
| require 'active_support/concern' | |
| module FrontMatter | |
| extend ActiveSupport::Concern | |
| included do | |
| helper_method :front_matter | |
| end | |
| def front_matter |
| // Create the test | |
| var pixelRatio = (window.devicePixelRatio >= 1.5) ? "high" : "normal"; | |
| .. | |
| // Pass it along through GA | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-xxxxxxxx-x']); | |
| // --- IMPORTANT LINE! | |
| // params: event method, custom variable slot, variable name, variable value, scope level |
| #!/bin/bash | |
| mkdir /tmp/curl-ca-bundle | |
| cd /tmp/curl-ca-bundle | |
| wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2 | |
| tar xzf curl-7.22.0.tar.bz2 | |
| cd curl-7.22.0/lib/ | |
| ./mk-ca-bundle.pl | |
| if [ ! -d /usr/share/curl/ ]; then | |
| sudo mkdir -p /usr/share/curl/ | |
| else |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'hpricot' | |
| require 'gollum' | |
| wiki = Gollum::Wiki.new('openaustralia.wiki') | |
| file = File.open("OpenAustralia-20110309232515.xml", "r") | |
| doc = Hpricot(file) |