Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
# Stick this in lib/tasks/assets.rake or similar | |
# | |
# A bug was introduced in rails in 7f1a666d causing the whole application cache | |
# to be cleared everytime a precompile is run, but it is not neccesary and just | |
# slows down precompiling. | |
# | |
# Secondary consequences are the clearing of the whole cache, which if using | |
# the default file cache could cause an application level performance hit. | |
# | |
# This is already fixed in sprockets-rails for rails 4, but we patch here for |
@App.directive "ngTap", -> | |
($scope, $element, $attributes) -> | |
tapped = false | |
$element.bind "click", -> | |
$scope.$apply($attributes["ngTap"]) unless tapped | |
$element.bind "touchstart", (event) -> | |
tapped = true | |
$element.bind "touchmove", (event) -> | |
tapped = false | |
event.stopImmediatePropagation() # Will otherwise interfere with -webkit-overflow-scrolling: touch |
# Example: | |
heroku accounts:default myaccount | |
git clone [email protected]:myapp.git |
A quick and easy step-by-step guide to get your Ruby environment up and running again after a fresh install of Mountain Lion. I messed up my installations a few times and figured I'd just put out a Gist once and for all to get this sucker working in one go.
First go ahead and install either XCode to get ahold of the Command Line Tools. Or, if you prefer not to install XCode, simply download the latest version directly. This only requires you to provide your Apple ID and password to sign in. You do not need a developers license.
Author: Michael van Rooijen (@mrrooijen)
DISCLAIMER: I am a programmer, not a sysadmin in my day-to-day life. I provide this guide simply as a self-reference, and as a way to contribute to the community of developers. The main motivation for writing this guide is because of the lack of properly written guides/tutorials. They were either out-dated, inaccurate, in a non-English language or simply too vague to understand (at least for me, as a programmer and not a sysadmin).
I hope this guide helps getting you up and running with your own collection of VPS's on your own Dedicated Server over at Hetzner.de.
Requirements:
Assumptions:
Mail = Ember.Application.create(); | |
// Let's pretend that Javascript can handle mutliline strings nicely: | |
Mail.ApplicationView = Ember.View.extend({ | |
template: Ember.Handlebars.compile(' | |
<!-- this gets replaced with content based on state when | |
connectOutlet is called on ApplicationController --> | |
{{outlet}} |
Mail = Ember.Application.create(); | |
// Let's pretend that Javascript can handle mutliline strings nicely: | |
Mail.ApplicationView = Ember.View.extend({ | |
template: Ember.Handlebars.compile(' | |
<!-- this gets replaced with content based on state when | |
connectOutlet is called on ApplicationController --> | |
{{outlet}} | |
') |
Batman.mixin Batman.Filters, | |
isCreating: (model) -> model?.get("lifecycle.state") == "creating" | |
isSaving: (model) -> model?.get("lifecycle.state") == "saving" | |
isDestroying: (model) -> model?.get("lifecycle.state") == "destroying" | |
isPersisting: (model) -> model?.get("lifecycle.state") in ["saving", "creating"] | |
isUndefined: (input) -> input == undefined | |
isNull: (input) -> input == null | |
isBlank: (input) -> input in [undefined, null, ""] |