Skip to content

Instantly share code, notes, and snippets.

View jayankandathil's full-sized avatar

Jayan Kandathil jayankandathil

View GitHub Profile
@jayankandathil
jayankandathil / cq_maintenance.sh
Last active September 27, 2016 14:31
Bash shell script to run Adobe CQ (Experience Manager) maintenance operations on Red Hat Enterprise Linux. Tested on RHEL 6.3 and 6.4
#!/bin/bash
# Bash script to run CQ daily maintenance operations, excluding TarPM Optimization and Tar Index Merge
# Author : Jayan Kandathil
# Version : 0.4
# Last updated : May 24, 2013
# Instructions : Copy to CQ's /bin folder, make necessary changes, enable the execute bit and run
@jayankandathil
jayankandathil / perf_measurement_servlet.java
Last active December 18, 2015 12:19
Sample code snippet showing measurement of actions within a Java servlet and returning the information back to the browser
import java.io.PrintWriter;
import java.text.DecimalFormat;
import javax.servlet.http.HttpServletResponse;
final long lngStart;
final long lngEnd;
final double dblElapsedTime;
// Get timestamp
lngStart = System.currentTimeMillis();