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
/** | |
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU Lesser General Public License as published by the Free | |
* Software Foundation; either version 2.1 of the License, or (at your option) | |
* any later version. | |
* | |
* This library is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
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
_patching-tool() | |
{ | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
COMPREPLY=( $(compgen -W "auto-discovery diff help index-info info install list-collisions list-customizations list-plugins revert server-status setup store support-info update-plugins version" -- $cur) ) | |
} | |
complete -F _patching-tool patching-tool.sh |
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
<%-- | |
/** | |
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU Lesser General Public License as published by the Free | |
* Software Foundation; either version 2.1 of the License, or (at your option) | |
* any later version. | |
* | |
* This library is distributed in the hope that it will be useful, but WITHOUT |
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
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %> | |
<%@ taglib uri="http://liferay.com/tld/theme" prefix="theme" %> | |
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %> | |
<portlet:defineObjects /> | |
<theme:defineObjects /> | |
<div id="<portlet:namespace />app" class="co-app"> | |
<table ng-controller="listCtrl" id="listCtrl"> | |
<thead> |
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
Overall cost: 520.0 | |
Unique songs: 237 | |
Cost per song: 2.1940928270042193 | |
Records: 52 01/16/16 Consol Energy Center, Pittsburgh, PA , 01/19/16 United Center, Chicago, IL , 01/26/14 Bellville Velodrome, Cape Town, SA , 01/28/14 Bellville Velodrome, Cape Town, SA , 01/29/14 Bellville Velodrome, Cape Town, SA , 01/31/16 Prudential Center, Newark, NJ , 02/02/16 Air Canada Centre, Toronto, ON , 02/07/14 Perth Arena, Perth, AU , 02/08/14 Perth Arena, Perth, AU , 02/10/16 XL Center, Hartford, CT , 02/12/14 Adelaide Entertainment Center, Adelaide, AU , 02/15/14 AAMI Park, Melbourne, AU , 02/19/14 Allphones Arena, Sydney, AU , 02/21/16 KFC Yum! Center, Louisville, KY , 02/22/14 Hope Estate Winery, Hunter Valley, AU , 02/23/16 Quicken Loans Arena, Cleveland, OH , 02/26/14 Brisbane Entertainment Centre, Brisbane, AU , 02/27/16 Blue Cross Arena, Rochester, NY , 02/29/16 Xcel Energy Center, St Paul, MN , 03/02/14 Mount Smart Stadium, Auckland, NZ , 03/09/12 Apollo Theater, New York, NY , 03/10/16 Talking Stick Resor |
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.io.*; | |
try { | |
File directory = new File("/opt/liferay"); | |
for (File f : directory.listFiles()) { | |
out.println(f.name + " " + f.size()); | |
} | |
} catch (Exception e) { | |
out.println(e.getMessage()); | |
} |
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
try { | |
java.io.File file = new java.io.File("/opt/liferay/portal-ext.properties"); | |
String s = com.liferay.portal.kernel.util.FileUtil.read(file); | |
out.println(s); | |
} catch (Exception e) { | |
out.println(e.getMessage()); | |
} |
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
def sout = new StringBuilder(), serr = new StringBuilder() | |
def proc = 'apt-get --just-print upgrade'.execute() | |
proc.consumeProcessOutput(sout, serr) | |
proc.waitForOrKill(10000) | |
println "out>" | |
println "$sout" | |
println "err>" | |
println "$serr" |
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 BaseHTTPServer | |
import SimpleHTTPServer | |
class MyRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def translate_path(self, path): | |
index = path.find('/', 2) | |
return SimpleHTTPServer.SimpleHTTPRequestHandler.translate_path(self, path[index:]) | |
httpd = BaseHTTPServer.HTTPServer(server_address, MyRequestHandler) | |
httpd.serve_forever() |
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
<#setting time_zone=timeZone.ID> | |
<#setting locale=locale.toString()> | |
<#setting datetime_format="MMM d, HH':'mm"> | |
<ul> | |
<#list entries as entry> | |
<li><li>${entry.title} - ${entry.modifiedDate?datetime}</li></li> | |
</#list> | |
</ul> |
OlderNewer