sudo service fail2ban restart
tail -f /var/log/fail2ban.log
const ftp = require("basic-ftp") | |
let currentServer = 1; | |
const getHost = (number) => { | |
number = number.toString().padStart(3, '0'); | |
let host = `ftp.cluster${number}.hosting.ovh.net`; | |
console.log('Host is :', host); | |
return host; | |
} | |
const connectFtp = async (number) => { | |
let client = new ftp.Client() |
//https://forum.axelor.com/t/axelor-5-3-3-installation/2913/22 | |
Axelor Ver 5.3.6 Installation in Ubuntu 18.0 | |
Prerequisites | |
Git 9 | |
OpenJDK 8 15 | |
Tomcat 9.0.26 8 | |
PostgreSQL version 10.12 8 or later | |
Install Git | |
Install Git 9 |
```php<?php | |
add_filter( 'the_content', function ($content) { | |
$content = mb_convert_encoding($content, 'HTML-ENTITIES', "UTF-8"); | |
$featured_image = get_the_post_thumbnail_url($post->ID); | |
$doc = new DOMDocument(); | |
$doc->loadHTML($content, ); | |
$imgs = $doc->getElementsByTagName('img'); | |
for($i = $imgs->length; --$i >= 0;){ | |
$node = $imgs->item($i); |
<?php | |
namespace Acelle\Library\Traits; | |
use Acelle\Model\Template; | |
use Exception; | |
use Acelle\Library\ExtendedSwiftMessage; | |
use Acelle\Model\Setting; | |
use Acelle\Library\StringHelper; | |
use League\Pipeline\PipelineBuilder; |
# DUMP | |
mysql -N -e 'show databases' | while read dbname; do mysqldump --complete-insert --routines --triggers --single-transaction "$dbname" > "$dbname".sql; done | |
# IMPORT | |
for sql in *.sql; do dbname=${sql/\.sql/}; echo -n "Now importing $dbname ... "; mysql $dbname < $sql; echo " done."; done | |
## Credits https://ma.ttias.be/mysql-back-up-take-a-mysqldump-with-each-database-in-its-own-sql-file/ |
gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFSETTINGS=/screen -dEmbedAllFonts=true -dSubsetFonts=true -dColorImageDownsampleType=/Bicubic -dColorImageResolution=144 -dGrayImageDownsampleType=/Bicubic -dGrayImageResolution=144 -dMonoImageDownsampleType=/Bicubic -dMonoImageResolution=144 -sOutputFile=out.compressed.pdf in.pdf; |
wp xml import | |
Process started: 2021-05-26 13:09:52 +00:00 | |
Found 74 files. | |
Progress: 1 % [=> ] 0:00 / 0:00Warning: No match for site with prefix : AEXE | |
Warning: No match for site with prefix : AEXE | |
Warning: No match for site with prefix : AEXE | |
Warning: No match for site with prefix : EF02 | |
Warning: No match for site with prefix : EF02 | |
Warning: No match for site with prefix : EF02 | |
Warning: No match for site with prefix : EF02 |
server { | |
server_name monssite.fr; | |
listen 80; | |
return 307 https://$host$request_uri; | |
} | |
server { | |
server_name monssite.fr; | |
listen 443 ssl http2; # managed by Certbot | |
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot |
<?php | |
Array | |
( | |
[0] => Array | |
( | |
[libelle] => Array | |
( | |
[value] => les-plats | |
[label] => LES PLATS | |
) |