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
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 | |
} |
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
// 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'; |
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
#!/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" |
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
#!/bin/bash | |
# Install zip package through curl | |
groupName="Brandon" | |
packageName="20150319_show.zip" | |
package="./packages/$packageName" | |
username="162084" |
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
// get current string location | |
var loc = document.URL; | |
// strip cf#/ from it to get rid of that annoying left rail image bar | |
loc = loc.replace('cf#/', ''); | |
// if wcmmode=disabled is already set | |
if( loc.match(/[?|&]wcmmode=disabled/)){ | |
// new location is the URL without wcmmode=disabled | |
loc = loc.replace(/[?|&]wcmmode=disabled/, ''); | |
} else { | |
// otherwise, add wcmmode=disabled |
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
#!/bin/bash | |
echo "Running runmode updates - $(date)" | |
# Custom OSGI Property Mapping Service files look something like | |
#<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
# jcr:primaryType="sling:OsgiConfig" | |
# mapping.map="[diy-key|value1, | |
# hgtv-key|value2]" |
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
#!/bin/bash | |
# Create a package with a given set of root paths | |
groupName="Brandon" | |
function requestPass() { | |
username="162084" | |
#get password from user |
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
#!/bin/bash | |
# this is for the Ethernet to USB 3.0 adapter | |
# made by Cable Matters | |
cd ~/ | |
mkdir -p cable-matters-temp | |
cd cable-matters-temp |
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
# Author: Brandon Foster | |
# Date: 20150826 | |
# Purpose: | |
# - automate the comparisons between lightbulbs | |
# INC stands for Incandescent | |
# LED stands for Light-emitting diode | |
# CFL stands for Compact Fluorescents |
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
[].forEach.call( | |
$('.course-item-list-header'), | |
function(el){ | |
var secSum = 0, | |
minSum = 0, | |
hourSum = 0 | |
originalTitle = ''; | |
originalTitle = $(el).find('h3').text(); | |
//console.log( $(el).find('h3').text() ); | |
[].forEach.call( $(el).next().find('.lecture-link'), |
OlderNewer