This file contains 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
// Page should close after 2 mins but it is closed after ~27 seconds... | |
const { Cluster } = require('puppeteer-cluster'); | |
(async () => { | |
const cluster = await Cluster.launch({ | |
concurrency: Cluster.CONCURRENCY_CONTEXT, | |
maxConcurrency: 2, | |
puppeteerOptions: { | |
headless: false | |
} |
This file contains 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
<?php | |
$date = '2018-03-01'; | |
$end = '2018-09-' . date('t', strtotime($date)); //get end date of month | |
?> | |
<table> | |
<tr> | |
<?php while(strtotime($date) <= strtotime($end)) { | |
$day_num = date('d', strtotime($date)); | |
$day_name = date('l', strtotime($date)); | |
$month = date('M', strtotime($date)); |
This file contains 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
<!DOCTYPE html> | |
<head> | |
<title>Stay Standalone</title> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<script src="stay_standalone.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<ul> | |
<li><a href="http://google.com/">Remote Link (Google)</a></li> |
This file contains 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
https://reddit.com/r/amazonwebservices | |
https://aws.amazon.com/blogs/aws/author/jbarr/ | |
Amazon associate: Messaging, desktop and app streaming | |
security and identity | |
management tools | |
storage | |
databases |
This file contains 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
- Redirect to https and non-www to www | |
https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&uact=8&ved=0ahUKEwjozKHqyo3XAhWENI8KHUSNAvoQFgg9MAQ&url=https%3A%2F%2Fsimonecarletti.com%2Fblog%2F2016%2F08%2Fredirect-domain-http-https-www-apache%2F&usg=AOvVaw3ZrAY62n_uaXWwa7g2eJs5 | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] | |
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301] |
This file contains 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
Command to see configuration: | |
php bin/console config:dump-reference sulu_product will help you to see list in yml file. | |
Article: | |
https://blog.martinhujer.cz/symfony-forms-with-request-objects/ |
This file contains 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
composer show --latest 'sonata-project/*' | |
"php": "^5.5.9 || ~7.0", |