Skip to content

Instantly share code, notes, and snippets.

if ($length != '' && ! preg_match($pattern, $type)) {
$lengthFix = str_replace(",", ".", $length);
if($lengthFix != $length){
$modified = true;
}
if(is_numeric($lengthFix)){
@vdeville
vdeville / Tuto Nginx SSL Cerbot Let's Ecnrypt.yml
Last active January 30, 2017 19:43
Tuto Nginx SSL Cerbot Let's Ecnrypt
# /etc/nginx/sites-available/www.valentin-deville.eu
# Redirection de http sur https
server {
listen 80;
server_name www.valentin-deville.eu;
rewrite ^ https://$server_name$request_uri? permanent;
}