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
| { | |
| "name": "r-typescript-setup-demo", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "repository": { | |
| "type": "git", |
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
| def base64_decode_to_hex(s): | |
| """Helper function to convert the base64 encoded string to hex format. | |
| :param s: string to convert to hex | |
| :returns: decoded string | |
| """ | |
| import base64 | |
| decoded = base64.b64decode(s) | |
| return decoded |
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
| SELECT | |
| database_name = DB_NAME(database_id) | |
| , log_size_mb = CAST(SUM(CASE WHEN type_desc = 'LOG' THEN size END) * 8. / 1024 AS DECIMAL(8,2)) | |
| , row_size_mb = CAST(SUM(CASE WHEN type_desc = 'ROWS' THEN size END) * 8. / 1024 AS DECIMAL(8,2)) | |
| , total_size_mb = CAST(SUM(size) * 8. / 1024 AS DECIMAL(8,2)) | |
| FROM sys.master_files WITH(NOWAIT) | |
| WHERE database_id = DB_ID() -- for current db | |
| GROUP BY database_id |
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
| jcr.initialize.on.startup=true | |
| # | |
| # Set the name of a class that implements | |
| # com.liferay.portlet.documentlibrary.store.Store. The | |
| # document library server will use this to persist documents. | |
| # | |
| dl.store.impl=com.liferay.portlet.documentlibrary.store.JCRStore | |
| ## | |
| ## Images |
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
| <?xml version="1.0"?> | |
| <Repository> | |
| <!-- | |
| Database File System (Cluster Configuration) | |
| This is sample configuration for mysql persistence that can be used for | |
| clustering Jackrabbit. For other databases, change the connection, | |
| credentials, and schema settings. |
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
| <?xml version="1.0"?> | |
| <Repository> | |
| <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> | |
| <param name="path" value="${rep.home}/repository" /> | |
| </FileSystem> | |
| <!-- | |
| Database File System (Cluster Configuration) | |
| This is sample configuration for mysql persistence that can be used for |
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
| DynamicQuery query = DynamicQueryFactoryUtil.forClass( | |
| PortletPreferences.class).add( | |
| PropertyFactoryUtil.forName("portletId").like("%myportletA%")); | |
| List<Object> preferences = PortletPreferencesLocalServiceUtil.dynamicQuery(query); | |
| for (Object preferencesPart : preferences) { | |
| System.out.println("Prefs value is varA "+((PortletPreferences) preferencesPart).getPreferences()); | |
| javax.portlet.PortletPreferences prefs = PortletPreferencesFactoryUtil.fromDefaultXML(((PortletPreferences) preferencesPart).getPreferences()); | |
| System.out.println(prefs.getValue("varA", "0")); |
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
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You under the Apache License, Version 2.0 | |
| # (the "License"); you may not use this file except in compliance with | |
| # the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
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
| <Context path="" crossContext="true"> | |
| <!-- JAAS --> | |
| <!--<Realm className="org.apache.catalina.realm.JAASRealm" | |
| appName="PortalRealm" | |
| userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal" roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole" />--> | |
| <!-- Uncomment the following to disable persistent sessions across reboots. --> |
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
| wrapper.java.additional.8="-Xmx2048M" | |
| wrapper.java.additional.9="-Xss256K" | |
| wrapper.java.additional.10="-XX:MaxPermSize=256m" | |
| wrapper.java.additional.11="-Dfile.encoding=UTF-8" |
NewerOlder