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
// ## CHANGE THESE ## | |
var largestLayoutId = 99999; | |
var groupName = "[group name]"; | |
var showPublic = false; | |
var companyId = 10153; | |
var siteMemberRoleId= 10169; | |
var className = "com.liferay.portal.model.Layout"; | |
//var groupId = Packages.com.liferay.portal.service.GroupLocalServiceUtil.getGroup(companyId, groupName).getGroupId(); | |
var groupId = 10179; |
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
// ## CHANGE THESE ## | |
var mainPath = "http://localdev.aha.org:8080"; | |
var largestLayoutId = 99999; | |
// ## get all layouts containing custom portlets (that is, ones whose ID is not numeric) and print their URLs | |
var layouts = Packages.com.liferay.portal.service.LayoutLocalServiceUtil.getLayouts(0,largestLayoutId); | |
number = layouts.size(); | |
var friendlyUrlArray = new Packages.java.util.ArrayList(); | |
var names = ""; | |
var output = ""; |
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
export JAVA_HOME=/usr/java/jdk1.6.0_21 | |
export LIFERAY_HOME=/usr/liferay/liferay-portal-6.0.5/tomcat-6.0.26 | |
export PATH=$JAVA_HOME/bin:$LIFERAY_HOME/bin:$PATH |
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
git checkout -b upstream/master | |
git remote add upstream git://github.com/documentcloud/underscore.git | |
git pull upstream master | |
git checkout master // [my master branch] | |
git merge upstream/master | |
git push origin master | |
## Source : https://github.com/blog/266-fast-forward-your-fork |
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
<? | |
// limitation is that this script only works for http right now; also, login forms may/not work | |
// this PHP script lets your apache server act as a proxy | |
// 1. simply add a .htaccess directive as follows | |
// ErrorDocument 404 /proxy.php | |
// 2. set the proxy_url and actual_url parameters belom | |
// proxy_url is the address to your PHP server, e.g. www.example.com | |
// actual_url is the address to your other server, e.g. 10.10.10.10 | |
error_reporting(E_ALL); |
NewerOlder