After installing an instance of Kujua-Lite, it is fairly easy to administer access to it. This document will explain how.
- To ensure only members of the group 'organizationX' have access to an instance of kujua-lite.
| { | |
| "name": "example", | |
| "version": "2.1.4", | |
| "description": "Example docker", | |
| "scripts": { | |
| "start": "node bin/cli", | |
| "docker-build": "rm -rf node_modules && npm i --production && ./node_modules/docker-build-run-push/docker-build", | |
| "docker-run": "./node_modules/docker-build-run-push/docker-run", | |
| "docker-push": "rm -rf node_modules && npm i && make build && npm prune && ./node_modules/docker-build-run-push/docker-push" | |
| }, |
| FROM ryanramage/pm2-git-alpine | |
| # Add source files & deps | |
| ADD . /var/www/ui-widgets | |
| WORKDIR /var/www/ui-widgets | |
| # Define mountable directories. | |
| VOLUME ["/var/log/ui-widgets"] |
| > git clone https://github.com/apache/couchdb.git | |
| > cd couchdb/ | |
| > git checkout -b 1994-merge-rcouch origin/1994-merge-rcouch | |
| > make | |
| > make check | |
| ---skipping logs, to around the failures ----- | |
| oauth_users_db.js ... testing | |
| oauth_users_db.js ... ok |
| <script type="text/javascript"> | |
| function load(){ | |
| require(['js/app', 'jquery'], function (app, $) { | |
| window.$ = $; | |
| app.initialize(); | |
| require(['js/libs/bootstrap'], function(ihatebs){}) | |
| }); | |
| } | |
| function loadDev(){ | |
| console.log('DEVELOPMENT MODE'); |
| { | |
| "_id": "redforms-rwp-6566", | |
| "_rev": "2-bb45ce4405f0d49e329d1f4511ceb142", | |
| "source": "redforms", | |
| "target": "redforms-rwp-6566", | |
| "continuous": true, | |
| "create_target": true, | |
| "doc_ids": [ | |
| "_design/redforms" | |
| ], |
| // ==UserScript== | |
| // @name TwitterLinks | |
| // @namespace http://wiki.greasepot.net/examples | |
| // @description Replace twitter short urls with expanded urls | |
| // @match https://twitter.com/* | |
| // ==/UserScript== | |
| // $('a.twitter-timeline-link').each(function(item){ $(this).attr('href', $(this).data('expanded-url') ) }); | |
| function fix() { |
| (function (root, factory) { | |
| if (typeof exports === 'object') { | |
| module.exports = factory( require('FILLME_A'), require('FILLME_B'), require('FILLME_C')); | |
| } else if (typeof define === 'function' && define.amd) { | |
| define(['FILLME_A', 'FILLME_B', 'FILLME_C'],factory); | |
| } else { | |
| root.FILLME_GLOBAL_NAME = factory(root.FILLME_A, root.FILLME_B, root.FILLME_C); | |
| } | |
| }(this, function (FILLME_A, FILLME_B, FILLME_C) { |
| (function(){ | |
| var currentETag; | |
| onLoad(function pageLoaded() { | |
| console.log('starting live reload'); | |
| if (window.EventSource) return eventsource(); | |
| else setInterval(polling, 1500); | |
| }); |
| <doctype html> | |
| <html> | |
| <div id="thing"> | |
| </div> | |
| <script type="text/javascript" src="jam/require.js"></script> | |
| <script type="text/javascript"> | |
| require(['jquery'], function($){ | |
| $('#thing').html('dsasad') | |
| }); | |
| </script> |