This file contains hidden or 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
| import { LeafletProvider, createLeafletContext } from '@react-leaflet/core'; | |
| import { Map as LeafletMap, LatLngBoundsExpression, LatLngExpression, MapOptions, FitBoundsOptions } from 'leaflet'; | |
| import React, { useCallback, useEffect, useRef, useState } from 'react'; | |
| interface MapContainerProps extends MapOptions { | |
| bounds?: LatLngBoundsExpression; | |
| boundsOptions?: FitBoundsOptions; | |
| center?: LatLngExpression; | |
| children?: React.ReactNode; | |
| className?: string; |
This file contains hidden or 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
| 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() |
This file contains hidden or 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://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 |
This file contains hidden or 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<?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); |
This file contains hidden or 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 | |
| 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; |
This file contains hidden or 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
| # 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/ |
This file contains hidden or 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
| 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; |
This file contains hidden or 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
| 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 |
This file contains hidden or 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
| 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 |
This file contains hidden or 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 | |
| Array | |
| ( | |
| [0] => Array | |
| ( | |
| [libelle] => Array | |
| ( | |
| [value] => les-plats | |
| [label] => LES PLATS | |
| ) |
NewerOlder