This file contains 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 com.liferay.document.library.kernel.store.*; | |
import com.liferay.portal.kernel.util.*; | |
import com.liferay.portal.kernel.service.*; | |
import com.liferay.portal.kernel.dao.orm.*; | |
import com.liferay.portal.kernel.util.HtmlUtil; | |
import com.liferay.document.library.kernel.util.*; | |
import com.liferay.document.library.kernel.lar.*; | |
import com.liferay.document.library.kernel.service.*; | |
import com.liferay.document.library.kernel.model.*; | |
import com.liferay.document.library.kernel.service.*; |
This file contains 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 com.liferay.portal.kernel.security.pwd.* | |
try{ | |
String algorithm = PasswordEncryptorUtil.getDefaultPasswordAlgorithmType(); | |
out.println("Algorithm"+algorithm); | |
String pwdEnc = PasswordEncryptorUtil.encrypt("TEXTTEXTTEXT"); | |
out.println("Password encrypted:"+pwdEnc); | |
String hexPwd = org.apache.commons.codec.binary.Hex.encodeHexString(pwdEnc.getBytes()); |
This file contains 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 com.liferay.portal.kernel.security.pwd.* | |
try{ | |
String algorithm = PasswordEncryptorUtil.getDefaultPasswordAlgorithmType(); | |
out.println("Algorithm"+algorithm); | |
String pwdEnc = PasswordEncryptorUtil.encrypt("TEXTTEXTTEXT"); | |
out.println("Password encrypted:"+pwdEnc); | |
String hexPwd = org.apache.commons.codec.binary.Hex.encodeHexString(pwdEnc.getBytes()); |
This file contains 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 /Users/corne/Library/Application\ Support/Skype/corne.aussems/ | |
cp main.db main-bak.db | |
sqlite3 main-bak.db | |
/** pretty print **/ | |
sqlite3 -separator $'\t' -header -cmd '.mode columns' main-bak.db ; | |
/** You want to know what you wrote in each Conversation last 2 days **/ | |
SELECT displayname,from_dispname, datetime(Messages.timestamp, 'unixepoch') AS date, body_xml | |
FROM Messages LEFT JOIN Conversations on Messages.chatname = Conversations.identity | |
WHERE Messages.timestamp BETWEEN strftime('%s','now', '-2 days') AND strftime('%s','now') |
This file contains 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 com.liferay.portal.kernel.service.*; | |
import com.liferay.portal.kernel.dao.orm.*; | |
final def SCRIPT_ID = "MYSCRIPT" | |
outputFile = new File("""${System.getProperty("liferay.home")}/logs/out-${SCRIPT_ID}.txt""") | |
out.println(outputFile.text) |
This file contains 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 com.liferay.portal.kernel.util.PortalUtil; | |
import com.liferay.portal.kernel.service.ServiceContext; | |
import com.liferay.portlet.journal.service.*; | |
import com.liferay.journal.service.impl.*; | |
import com.liferay.journal.service.*; | |
import com.liferay.portal.kernel.service.*; | |
import com.liferay.portal.kernel.dao.orm.*; | |
final def SCRIPT_ID = "MYSCRIPT1" | |
outputFile = new File("""${System.getProperty("liferay.home")}/scripting/out-${SCRIPT_ID}.txt""") |
This file contains 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 java.util.ArrayList | |
import java.util.Iterator | |
import java.util.List | |
import java.util.ListIterator | |
import com.liferay.portal.service.ResourcePermissionLocalServiceUtil | |
import com.liferay.portal.service.RoleLocalServiceUtil | |
import com.liferay.portal.model.ResourceConstants | |
import com.liferay.portal.model.ResourcePermission | |
import com.liferay.portal.model.Role |
This file contains 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 com.liferay.portal.service.ServiceContext; | |
//import com.liferay.portal.util.*; | |
//import com.liferay.portal.service.*; | |
//import com.liferay.portal.service.impl.*; | |
import com.liferay.portal.kernel.service.ServiceContext; | |
import com.liferay.portal.kernel.util.*; | |
import com.liferay.portal.kernel.service.*; | |
import com.liferay.portal.kernel.service.impl.*; |
This file contains 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
<INTERN_NUMMER>(.*)</INTERN_NUMMER>\n^(.*)<ACHTERNAAM>Diwali</ACHTERNAAM>\n^(.*)<VOORNAAM>Sunder</VOORNAAM>\n^(.*)<GESLACHT>V</GESLACHT>\n^(.*)<TAAL>NL</TAAL>\n^(.*)<EMAIL>(.*)</EMAIL> | |
<INTERN_NUMMER>\1</INTERN_NUMMER>\n\2<ACHTERNAAM>Diwali</ACHTERNAAM>\n\3<VOORNAAM>Sunder</VOORNAAM>\n\4<GESLACHT>V</GESLACHT>\n\5<TAAL>NL</TAAL>\n\6<EMAIL>\1@hema.whatever</EMAIL> |