curl -o docker-compose.yml https://www.conjur.org/get-started/docker-compose.quickstart.yml
sed -i '' "s/^version: '2'$/version: '2.2'/g" docker-compose.yml
sed -i '' '/^ CONJUR_ACCOUNT:$/d' docker-compose.yml
sed -i '' '/^ CONJUR_AUTHN_API_KEY:$/d' docker-compose.yml
sed -i '' '/^ CONJUR_AUTHN_LOGIN: admin$/d' docker-compose.yml
docker-compose pull
I hereby claim:
- I am dericcrago on github.
- I am dericcrago (https://keybase.io/dericcrago) on keybase.
- I have a public key ASDFE9Y6beWaV5BKjxDl3IXwA5_GAd5u4T3YwQszz_4_Rwo
To claim this, I am signing this object:
This file contains hidden or 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
// Credentials for use with Kinvey | |
// NOTE: This example shows passing in the master secret. | |
// In a production environment, these credentials should be protected i.e. | |
// they should be requested from the user or secured via a login screen | |
var kinvey_app_key = 'kidxxxx'; | |
var kinvey_secret = 'master secret'; | |
// Define .ajax Defaults | |
$.ajaxSetup({ | |
beforeSend: function(jqXHR) { |
This file contains hidden or 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
// example | |
User = Backbone.Model.extend({ | |
url: function() { | |
var origUrl = Backbone.Model.prototype.url.call(this); | |
return origUrl + (origUrl.charAt(origUrl.length - 1) == '/' ? '' : '/'); | |
} | |
}); |
This file contains hidden or 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
Base.TemplateContext = {}; | |
Base.Views.Layout = Backbone.View.extend({ | |
initialize: function() { | |
this.setViews(_.extend({}, this.views, this.options.views)); | |
if (this.options.template) { | |
this.template = this.options.template; | |
} | |
this.templateContext = _.extend({}, Base.TemplateContext, this.templateContext); |
This file contains hidden or 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
from tastypie import fields | |
from tastypie.resources import ModelResource | |
from company.models import Company | |
class CompanyResource(ModelResource): | |
""" | |
Tastypie resource for Company | |
""" | |
class Meta: |
This file contains hidden or 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
from tastypie.validation import FormValidation | |
class InstanceFormValidation(FormValidation): | |
def is_valid(self, bundle, request=None): | |
errors = {} | |
data = bundle.data | |
instance = bundle.obj |
This file contains hidden or 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
this.twitter = { | |
// Create this closure to contain the cached modules | |
module: function() { | |
// Internal module cache. | |
var modules = {}; | |
// Create a new module reference scaffold or load an | |
// existing module. | |
return function(name) { | |
// If this module has already been created, return it. |