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" encoding="UTF-8"?> | |
| <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.3"> | |
| <hashTree> | |
| <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Commerce Test Plan" enabled="true"> | |
| <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> | |
| <collectionProp name="Arguments.arguments"> | |
| <elementProp name="hostname" elementType="Argument"> | |
| <stringProp name="Argument.name">hostname</stringProp> | |
| <stringProp name="Argument.value">${__P(hostname,localhost)}</stringProp> | |
| <stringProp name="Argument.metadata">=</stringProp> |
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
| RENAME TABLE account_ TO Account_; | |
| RENAME TABLE address TO Address; | |
| RENAME TABLE announcementsdelivery TO AnnouncementsDelivery; | |
| RENAME TABLE announcementsentry TO AnnouncementsEntry; | |
| RENAME TABLE announcementsflag TO AnnouncementsFlag; | |
| RENAME TABLE assetcategory TO AssetCategory; | |
| RENAME TABLE assetcategoryproperty TO AssetCategoryProperty; | |
| RENAME TABLE assetentries_assetcategories TO AssetEntries_AssetCategories; | |
| RENAME TABLE assetentries_assettags TO AssetEntries_AssetTags; | |
| RENAME TABLE assetentry TO AssetEntry; |
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
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.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
| import java.sql.Connection; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| import java.sql.Statement; | |
| import com.liferay.portal.kernel.dao.jdbc.DataAccess; | |
| Connection con = null; | |
| Statement st = null; | |
| try { | |
| con = DataAccess.getUpgradeOptimizedConnection(); |
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
| import groovy.io.FileType | |
| if ( args.length < 2 ) { | |
| println "Scan's thread dump *.log files from directory"; | |
| println ""; | |
| println "Usage:"; | |
| println "groovy ThreadDumpAnalyzer.groovy <directory> <first value to look from thread dump> <second value to look from thread dump> <third value to look from thread dump>"; | |
| println ""; | |
| return; | |
| } |
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
| var MIN_MISS_PERCENTAGE = 10; | |
| var fields = [ "CacheType", ".Bean", "ObjectCount", "CacheHits", "CacheMisses", "CacheMissPercentage" ]; | |
| var padding30 = Array(30).join(' '), padding12 = Array(12).join(' '), padding20 = Array(20).join(' '); | |
| var platformMBeanServer = Packages.java.lang.management.ManagementFactory.getPlatformMBeanServer(); | |
| function printInColumns(values) { | |
| var beanName = values[1]; |