Skip to content

Instantly share code, notes, and snippets.

@fiskr
fiskr / create_package.sh
Created March 23, 2015 13:29
Shell script to create, add filters to, build, and download a package all at once!
#!/bin/bash
# Create a package with a given set of root paths
#CONFIG
# you will need to change your username and group name
groupName="Brandon"
username="162084"
@fiskr
fiskr / aem_query_bookmarklet.js
Created March 9, 2015 19:54
This is a bookmarklet that pop ups a simple text area to let you copy the query paths you get from CRXDE querying.
// Author: Brandon Foster
// Purpose: when you query in AEM, you can't copy and paste the paths,
// so this takes the paths from the DOM and puts them in a text area so you can copy/paste them
// Date: 20150305
function createTextarea(){
var output = document.createElement('textarea');
document.body.appendChild(output);
output.style.zIndex = 9999;
output.style.width = '550px';
@fiskr
fiskr / full-rebuild.sh
Created November 10, 2014 15:33
Performs full rebuild of SNI-Foundation and HGTV projects, tells you how much time you've wasted (total included), and only builds what needs to be.
function pause(){
rc=$?
if [[ $rc != 0 ]]
then
calcTimeLoss
read -p "Press [Enter] to continue, there are build errors above."
else
echo $(date +%m" "%_d" "%T" "%Y) > "$LASTBUILD"
fi
}