Skip to content

Instantly share code, notes, and snippets.

@savs
savs / filter.sh
Created June 20, 2013 08:19
See what images CQ is serving when using the adaptive image component. Usage: filter.sh /path/to/cq/crx-quickstart
#!/bin/bash
PATH=$1
echo "Monitoring $1/logs/access.log"
/usr/bin/tail -f "$PATH/logs/access.log" | \
GREP_COLOR='01;32' /usr/bin/grep --line-buffered --color=always 'high\|medium\|low\|full\|adapt\.' |\
/usr/bin/cut -d ' ' -f 6,7
/* Resposive design Wireframe by @mobifreaks for www.mobifreaks.com
Last Update Feb 2, 2012
*/
body{
margin:0;
padding:0;
color:#000;
background:#1d1d1d;
}
.clear{ clear:both; }/* clear's float from both side */
<%@include file="/libs/foundation/global.jsp" %>
<header>header</header>
<%@include file="/libs/foundation/global.jsp" %>
<div class="content">
<div class="col1">
<cq:include path="content-par" resourceType="foundation/components/parsys" />
</div>
<div class="col2">sidebar</div>
<div class="clear"></div>
</div>
<%@include file="/libs/foundation/global.jsp" %>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1"/>
<title><%= xssAPI.encodeForHTML( currentPage.getTitle() == null ? currentPage.getName() : currentPage.getTitle() ) %></title>
<% currentDesign.writeCssIncludes(pageContext); %>
<cq:include script="/libs/wcm/core/components/init/init.jsp"/>
</head>
@savs
savs / body.jsp
Last active December 14, 2015 11:58
<%@include file="/libs/foundation/global.jsp" %>
<cq:defineObjects/>
<body>
<div id="fb-root"></div>
<div class="wrap">
<cq:include script="header.jsp"/>
<cq:include script="content.jsp"/>
<cq:include script="footer.jsp"/>
</div>
</body>
<%@include file="/libs/foundation/global.jsp" %>
<!DOCTYPE html>
<html>
<cq:include script="head.jsp" />
<cq:include script="body.jsp" />
</html>