sudo a2dismod php7.1
sudo a2enmod php7.3
systemctl restart apache2
- sudo update-alternatives --set php /usr/bin/php7.3
- sudo update-alternatives --set phar /usr/bin/phar7.3
# Run | |
git config --global credential.helper store | |
#Then | |
git pull | |
#provide a username and password and those details will then be remembered later. The credentials are stored in a file on the disk, with the disk permissions of "just user readable/writable" but still in plaintext. |
$form['file'] = [ | |
'#type' => 'managed_file', | |
'#title' => t('File'), | |
'#upload_location' => 'public://file', | |
'#upload_validators' => [ | |
'file_validate_extensions' => ['csv'], | |
], | |
'#default_value' => array(2) | |
]; | |
Make sure these boxes are checked before submitting/approving the PR
<?php | |
/** | |
* @file | |
* Contains \Drupal\hello_world\Form\AddAnotherItem. | |
*/ | |
namespace Drupal\hello_world\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; |
#!/bin/sh | |
url="https://ftp.drupal.org/files/projects/drupal-7.59.zip"; | |
if curl --output /dev/null --silent --head --fail "$url"; then | |
echo "URL exists: $url"; | |
else | |
echo "URL does not exist: $url"; | |
fi; | |
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip"; |
1 - Ruby Installation
sudo apt-get install ruby ruby-dev rubygems libsqlite3-dev
2 - Installing MailCatcher
sudo gem install mailcatcher
3 - Getting started
[fazni]-[~] "Terminal"
$ mailcatcher
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080