PHP RegEx Replace accents of each selected word
Example :
$stopwords = ['toto', 'Pied', 'the'];
$str = 'bla bla toto bla bla Toto bla bla Tôtô bla bla totô bla bla bla bla the thé pied pïed pîéd';
Example :
$stopwords = ['toto', 'Pied', 'the'];
$str = 'bla bla toto bla bla Toto bla bla Tôtô bla bla totô bla bla bla bla the thé pied pïed pîéd';
function MYMODULE_views_pre_render(ViewExecutable $view) {
if ($view->id() == 'ABC') {
$view->setTitle('MY CUSTOM TITLE');
}
}
Drush 9 is finally here with some much-awaited changes. Drush 9 commands are now classes and .inc files are obsolete. Drush commands will now be based on the Annotated Command format. This will change the fundamental structure of custom Drush commands.
sudo apt-get -y install pptp-linux
Add secret:
File : /etc/ppp/chap-secrets
You can use:sudo nano /etc/ppp/chap-secrets
rsync is a powerfull tool to synchronize the files and directories. Can be use for local or remote using ssh.
Source Tutorial : https://www.thegeekstuff.com/2010/09/rsync-command-examples/
Syntaxrsync options source destination