Skip to content

Instantly share code, notes, and snippets.

random-read: (groupid=0, jobs=1): err= 0: pid=9536: Mon Jan 5 15:33:54 2015
write: io=131072KB, bw=970904KB/s, iops=242725 , runt= 135msec
clat (usec): min=2 , max=33 , avg= 3.16, stdev= 0.85
lat (usec): min=2 , max=33 , avg= 3.25, stdev= 0.86
clat percentiles (usec):
| 1.00th=[ 2], 5.00th=[ 2], 10.00th=[ 3], 20.00th=[ 3],
| 30.00th=[ 3], 40.00th=[ 3], 50.00th=[ 3], 60.00th=[ 3],
| 70.00th=[ 3], 80.00th=[ 3], 90.00th=[ 4], 95.00th=[ 5],
| 99.00th=[ 6], 99.50th=[ 7], 99.90th=[ 9], 99.95th=[ 12],
| 99.99th=[ 21]
random-read: (groupid=0, jobs=1): err= 0: pid=8378: Mon Jan 5 15:15:17 2015
write: io=131072KB, bw=910222KB/s, iops=227555 , runt= 144msec
clat (usec): min=2 , max=33 , avg= 2.82, stdev= 0.80
lat (usec): min=2 , max=33 , avg= 2.90, stdev= 0.79
clat percentiles (usec):
| 1.00th=[ 2], 5.00th=[ 2], 10.00th=[ 2], 20.00th=[ 2],
| 30.00th=[ 2], 40.00th=[ 3], 50.00th=[ 3], 60.00th=[ 3],
| 70.00th=[ 3], 80.00th=[ 3], 90.00th=[ 3], 95.00th=[ 4],
| 99.00th=[ 5], 99.50th=[ 6], 99.90th=[ 9], 99.95th=[ 11],
| 99.99th=[ 15]
@auniverseaway
auniverseaway / gist:3ecc78096a6dbfa038df
Created January 20, 2015 20:23
"Create Grid View" in AEM
CQ.Ext.onLoad(function() {
var config = {
"xtype": "sandiskCustomDataviewlens",
"style": "overflow:visible;",
"renderButtonTo": "lens-mosaic-button-wrapper-<%= time %>",
"proxyConfig": {
"url": "/bin/wcm/contentfinder/view.json/content/dam"
},
"storeConfig": {
"baseParams": {
@auniverseaway
auniverseaway / gist:4b2939ebebe74060450e
Created January 23, 2015 19:03
AEM TextImage Component
<div class="row">
<div class="col-xs-12 text-center sd-home-asset-icon" id="<%= xssAPI.encodeForHTMLAttr(divId) %>">
<% image.draw(out); %>
</div>
</div>
<cq:text property="image/jcr:description" placeholder="" tagName="small" escapeXml="true"/>
<%@include file="/libs/foundation/components/image/tracking-js.jsp"%>
<% }
String placeholder = (isAuthoringUIModeTouch && !image.hasContent())
? Placeholder.getDefaultPlaceholder(slingRequest, component, "", ddClassName): "";
$('.level1>.x-panel-bwrap>.x-panel-tbar, .level2>.x-panel-bwrap>.x-panel-tbar, .level3>.x-panel-bwrap>.x-panel-tbar').click(function(){
parent = this.parentNode;
body = $(parent).children('.x-panel-body');
xpanel = $(body).children('.x-panel');
// I always specifically open and close because I've seen some issues with toggleClass. - CM
if($(this).hasClass('open')) {
$(this).removeClass('open');
$(xpanel).removeClass('open');
} else {
$(this).addClass('open');
@auniverseaway
auniverseaway / gist:21800b9a7848b2bf880c
Last active February 6, 2019 01:36
Maven AEM Archetype 10 install command

Adobe's docs aren't quite updated to reflect the changes in the archetype. You can get the new hotness by using this command:

mvn archetype:generate \
-DarchetypeRepository=https://repo.adobe.com/nexus/content/groups/public/ \
-DarchetypeGroupId=com.adobe.granite.archetypes \
-DarchetypeArtifactId=aem-project-archetype \
-DarchetypeVersion=10 \
-DgroupId=my-group-id \
-DartifactId=myproject \

-Dversion=1.0-SNAPSHOT \

@auniverseaway
auniverseaway / checkbox.html
Last active September 13, 2015 00:28
Detect String Array in Sightly
<template data-sly-template.view>
<sly data-sly-test="${properties.options[1]}" data-sly-list.child="${properties.options}" data-sly-unwrap>
<label><input type="checkbox" name="${properties.name}" value="${child}">${child}</label>
</sly>
<label data-sly-test="${!properties.options[1]}"><input type="checkbox" name="${properties.name}" value="${properties.options}">${properties.options}</label>
</template>
// Current Generic GA Event Implementation
if (window.ga && dataLayer){
dataLayer.push({
'event': event,
'eventCategory':eventCategory,
'eventAction': eventAction,
'eventLabel':eventLabel
});
}
@auniverseaway
auniverseaway / _grid.scss
Last active December 18, 2015 20:07
Flexbox Grid System
@mixin Cell ($size) {
// Specific sizing for cells in 5% increments.
.Cell {
@for $i from 1 through 20 {
&.#{$size}-#{$i*5} {
flex: 0 0 #{$i*5}%;
}
}
}
}
var gulp = require('gulp');
var sass = require('gulp-sass');
var minifyCss = require('gulp-minify-css');
var sourceMaps = require('gulp-sourcemaps');
var rename = require("gulp-rename");
gulp.task('styles', function() {
gulp.src('./**/scss/*.scss', {base: '.'})
.pipe(sass().on('error', sass.logError))
.pipe(rename(function (path) {