Skip to content

Instantly share code, notes, and snippets.

View gmcdev's full-sized avatar
🌳
Growing

Greg Connell gmcdev

🌳
Growing
View GitHub Profile
// this route proxies static site requests to Review Page Builder
// Requests are secured by Sheet membership to this route.
// TODO: Maintain Google Drive API file permission cache
app.use(
'/dps/review/:ssid/:sid',
[authUser.redirectForAccess, authSsm.hasViewAccess],
(req, res, next) => {
// using the session ensures that the session cookie is included on every request
// otherwise, RPB will send its own session cookie on subsequent requests, which won't be authorized.
if (req.session.view) {
/**
*
*
* Proxy Data Export
*/
const assignObjToScopeByParams = (obj, scopes, matchParamsByScopes, depth) => {
// create clean nested-scope objects for parameters that are objects
const prepareNestScopes = () => {
return scopes.map(() => {
return {}
version: '2'
services:
sizzle-mongo:
container_name: sizzle-mongo
image: mongo
volumes:
- sizzle-volume:/data/db
ports:
- '27017:27017'
let cmd = ''
// windows
if (process.platform === 'win32') {
cmd += `cd "${global.servePath}" && npm install `
}
// mac & other platforms
else {
cmd = `cd ${unixPathLiteral(global.servePath)} && npm install `
}
self.prepareMonet = function() {
trace( id + '.prepareMonet()' );
async.wait();
// monetData will exist if data was loaded but had missing/unexpected data
if( typeof monetData == 'undefined' )
self.loadMonet();
else self.loadMonetBackup();
}
metamask.setupTrustedCommunication(
new ConnectionStream(),
'metamask-controller'
)
//
//
//
setupTrustedCommunication (connectionStream, originDomain) {
0xf0ECf102C09cE54b9ae31BcE01EBf63b999A811e
0x11A9F9354b3B301A778AF60c4EcbC5C4D7490b8D
0x9dEbAc63ADb27Cd2eB0A01042760bF233924C5fa
0xCB2355213dEf96207e202606aE5fda6b33a62977