const groupBy = key => array =>
array.reduce((objectsByKeyValue, obj) => {
const value = obj[key];
objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
return objectsByKeyValue;
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mautic Form Test</title> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
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
cd /home/clientsiwanta/public_html/mautic/ | |
find . -type d -exec sudo chmod 755 {} \; | |
find . -type f -exec sudo chmod 644 {} \; | |
sudo chmod -R g+w app/cache/ | |
sudo chmod -R g+w app/logs/ | |
sudo chmod -R g+w app/config/ | |
sudo chmod -R g+w media/files/ | |
sudo chmod -R g+w media/images/ | |
sudo chmod -R g+w translations/ | |
sudo chown -R www-data:www-data . |
OlderNewer