Start up the Docker container from image:
docker run --entrypoint "/bin/sh" --rm imagename:latest -c "sleep 24h"
Obtain the container hash id:
docker ps
/** | |
* Javascript-based validation of Swiss AHV numbers AHVN13 / EAN13 | |
* [Validierung von Schweizer AHV Nummern mit Javascript] | |
*/ | |
var inp = document.getElementById('ahvn13'); | |
inp.addEventListener('change', _validateAhvn13); | |
var _validateAhvn13 = function(input) { | |
var pattern = /^756\.(\d{4})\.(\d{4})\.(\d{2})$/; // format is 756.0000.0000.00 |
0xAd9b1FEFC98Ee16934DB03297B351FeF2ddb3866 |
Use following command from withint the root directory of your PHP project to create the PhpDocs in the ./docs subfolder of the project root. You may want to include only a ./src (Symfony) or ./app (Silex) subfolders in the analysis (do not run the documentator on the ./vendors folder):
docker run --rm -v $(pwd):/app instrumentisto/phpdoc -d /app -t ./docs
Wordpress has issues to detect the SSL connection betwenn the client and the proxy and thus may load static assets through http instead https, which will be blocked in moderns browsers (mixed content).
To circumvent the problem, simly extend your wp-config.php by following functions (insert towards the top of the config script):
/** Proxy SSL detection */
const {Builder, By, Capabilities} = require('selenium-webdriver'); | |
let chromeCapabilities = Capabilities.chrome(); | |
let chromeOptions = { | |
'args': ['--test-type', '--headles', '--incognito', '--window-size=340,750'] // approx. size of an iPhone 5/SE | |
}; | |
// "chromeOptions" was changed to "goog:chromeOptions" at some point... | |
chromeCapabilities.set('goog:chromeOptions', chromeOptions); |