Skip to content

Instantly share code, notes, and snippets.

View jverweijL's full-sized avatar
💭
🏴‍☠️

Jan Verweij jverweijL

💭
🏴‍☠️
View GitHub Profile
@jverweijL
jverweijL / piwikpro.htm
Created May 12, 2023 08:04
Piwik PRO test
<!-- PIWIKPRO STATIC CONTENT -->
<html>
<body>
<div class="readme">The quick brown fox jumped over the fence</div>
</body>
</html>
import javax.mail.internet.InternetAddress;
import com.liferay.mail.kernel.model.MailMessage;
import com.liferay.mail.kernel.service.MailServiceUtil;
// from
InternetAddress from = new InternetAddress();
from.setAddress("admin@liferay.com");
// to
InternetAddress to = new InternetAddress();
@jverweijL
jverweijL / _Client_Extensions.md
Last active September 26, 2022 11:47
example client extension

This gist will include some client extensions

@jverweijL
jverweijL / README.md
Created July 7, 2022 06:52
how to run docker container with liferay workspace

In your gradle.properties make sure to add the docker image you want to use like

liferay.workspace.docker.image.liferay=liferay/dxp:7.4.13-u31

To run the docker container use the following command

gw startDockerContainer logsDockerContainer

Some example regex for Liferay Forms Field Validation

Phonenumber

A phonenumber with exactly 10 digits

\d{10}

Maximum 10 words

@jverweijL
jverweijL / Liferay Objects.md
Last active February 17, 2022 08:33
Liferay Objects Use Cases

Liferay Objects Use Cases

webhook testing
sortable data tables

Ideas for the future

A business object may represent, for example, a person, place, event, business process, or concept and exist as for example and invoice, a product, a transaction or even details of a person.

Picklists

  • status
@jverweijL
jverweijL / reset.sql
Last active November 18, 2021 10:06
reset admin password
UPDATE User_
SET password_ = 'temporarypassword',passwordEncrypted = 0, passwordReset = 1
WHERE emailAddress = 'test@liferay.com';
# Restart the Liferay Services. This will allow you to log in once with your own set password. Liferay will ask you to set a new password and that’s all. You have succesfully regained control! Your password will automatically become encrypted again in the database, so no need to worry about that.
@jverweijL
jverweijL / country.json
Last active December 14, 2021 12:28
Public rest endpoints for dataproviders and more
[
{
"a2": "AF",
"a3": "AFG",
"active": true,
"countryId": "20",
"idd": "093",
"mvccVersion": "0",
"name": "afghanistan",
"nameCurrentValue": "Afghanistan",