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
| Just add this below line 243 | |
| https://github.com/theforeman/forklift/blob/master/vagrant/lib/forklift/box_distributor.rb#L243 | |
| override.vm.network :forwarded_port, guest: 3808, host: 3808 |
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
| { | |
| "href": "https://10.8.198.232/api/service_dialogs/2", | |
| "id": "2", | |
| "description": "desc", | |
| "buttons": "submit,cancel", | |
| "created_at": "2018-05-03T20:27:27Z", | |
| "updated_at": "2018-05-03T20:27:27Z", | |
| "label": "multi", | |
| "content": [ | |
| { |
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
| const started = __('was started.') | |
| EventNotifications.success(`${item.name} ${started} ${response.message}`) |
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
| const mongoose = require('mongoose') | |
| const rp = require('request-promise-native') | |
| if (process.env.NODE_ENV !== 'production') require('dotenv').config() | |
| mongoose.connect(process.env.DB_URL, { useMongoClient: true }) | |
| // mongoose.Promise = global.Promise | |
| mongoose.set('debug', true) | |
| var Server = require('./models/server') |
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
| //Create Object Definition | |
| POST - localhost:3000/api/generic_object_definitions | |
| { | |
| "name" : "LoadBalancer", | |
| "description" : "LoadBalancer description", | |
| "properties" : { | |
| "attributes" : { | |
| "address" : "string", | |
| "last_restart" : "datetime" | |
| }, |
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
| - "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\"" | |
| - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true | |
| - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true | |
| install: | |
| - time npm install -g grunt-cli | |
| - ./test-infra/s3_cache.py download npm-modules | |
| - if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi |
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
| // put this in your main.js | |
| // add cordova.js only if serving the app through file:// | |
| if (window.location.protocol === 'file:' || window.location.port === '3000') { | |
| var cordovaScript = document.createElement('script') | |
| cordovaScript.setAttribute('type', 'text/javascript') | |
| cordovaScript.setAttribute('src', 'cordova.js') | |
| document.body.appendChild(cordovaScript) | |
| } |
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
| describe('detail-reveal component', function() { | |
| beforeEach(function(){ | |
| module('app.components', 'gettext'); | |
| }); | |
| describe('controller', function() { | |
| var controller; | |
| var $componentController; | |
| var bindings = {title: 'Test', detail: 'test detail', icon: 'testIconClass', translateTitle: false, rowClass: 'test'}; |
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
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash | |
| nvm install 0.12.16 | |
| nvm use 0.12.16 |
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
| Users.findOne({"id":user_id}).exec(function(err, user) { | |
| stripe.customers.create({ //this saves the user to the platform account | |
| source: tokenID, | |
| email: user.email, | |
| description: "Example customer" | |
| }, function (err, customer) { | |
| user.stripe_cust=customer.id; | |
| //this attempts to create a token associated to the connected account id | |
| stripe.tokens.create( |
NewerOlder