-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
const generatorAsync = function(generator){ | |
let gen = generator(); | |
let processNext = function(result){ | |
var val = gen.next(result); | |
if (val.value && val.value.then){ | |
// TODO: manage error with gen.throw(...) | |
val.value.then(res => processNext(res)); | |
} | |
}; | |
processNext(); |
// MIT License | |
// Copyright Peter Širka <petersirka@gmail.com> | |
var less = require('less'); | |
var fs = require('fs'); | |
exports.install = function() { | |
// THE PROBLEM: | |
// LESS CSS does not support synchronous compiler | |
// We must create a file route |
var originalOnSchema = F.onSchema; | |
F.onSchema = function(req,group,name,callback){ | |
req.originalBody = req.body; | |
originalOnSchema.apply(F,arguments); | |
}; |
// =================================================== | |
// IMPORTANT: only for development | |
// total.js - web application framework for node.js | |
// http://www.totaljs.com | |
// =================================================== | |
var fs = require('fs'); | |
var options = {}; | |
// options.ip = '127.0.0.1'; |
grep -E "https?\:" filename.config | sed -E 's/^.*(https?:\/\/[^\/"]+).*$/\1/' | sort | uniq | |
# use to copy to clipboard (osx only) | pbcopy |
Based on:
Steps:
# with VPN, add an host skipping VPN | |
sudo route add -host 10.0.0.145 -gateway 10.0.0.3 | |
# remove entry | |
sudo route delete -host 10.0.0.145 | |
# show all routes | |
netstat -nr |
# execute as: mongod -f mongodb.conf | |
storage.preallocDataFiles: false | |
storage.nsSize: 4 | |
storage.smallFiles: true | |
storage.dbPath: "mongodata/" |
var dialog = null; | |
function showDialog(){ | |
SP.SOD.loadMultiple(['sp.ui.dialog.js','strings.js'], function(){ | |
dialog = SP.UI.ModalDialog.showWaitScreenWithNoClose("Please wait...", 'Loading data', null, null); | |
}); | |
} |