This file contains hidden or 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
// paste the following into a new bookmark called CQ5 Preview | |
javascript:(function(){ | |
function updateQueryStringParameter(uri, key, value) { | |
var re = new RegExp("([?|&])" + key + "=.*?(&|$)", "i"); | |
separator = uri.indexOf('?') !== -1 ? "&" : "?"; | |
if (uri.match(re)) { | |
return uri.replace(re, '$1' + key + "=" + value + '$2'); | |
} | |
else { | |
return uri + separator + key + "=" + value; |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>International Center Search</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<!-- Search Engine Verify for Home Page --> | |
<meta name="msvalidate.01" content="3D92C0EE929BE04567ECFDE4F390DC96" /> | |
<meta name="google-site-verification" content="xL7RtAlI13QtadjUtrjw9-TnDxGRYmO6ysBvEd9_xwQ" /> | |
<meta name="y_key" content="1940ff70ba0e0bee" /> |
This file contains hidden or 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
#GLOBAL | |
HTTPRESPONSE="json" | |
SUCCESS="success" | |
#TEST | |
#UIARTFCT="org.acs.cq-code-476" | |
#UILOC="/appl/bamboo-home/xml-data/build-dir/393217/CQ5-MASTER-JOB1/ui/target/" | |
#AUTHORHOST="cmsautdev.acs.org" | |
#AUTHORPORT="443" | |
#AUTHORPROTOCOL="https://" |
This file contains hidden or 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
/* | |
AEM DOM BASED ROUTING SECTION | |
The data-controller attribute should point to the module defined JS controller (required) | |
The data-action attribute should reference a method of that controller, which will be passed an array of dom elements . | |
(Defaults to init) | |
The data-config object should contain a JSON object with configuration parameters (optional) | |
See http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/ for inspiration | |
ex: <div id="${divId}" | |
data-composer='foo' | |
data-action='doit' |
This file contains hidden or 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
_isUrl = function (str) { | |
// pass --> http://google.com | |
// pass --> ftp://google.com | |
// pass --> google.com | |
// pass --> localhost | |
// pass --> 127.0.0.1 | |
// pass --> 1.1.1.1 | |
// pass --> http://127.0.0.1 | |
// pass --> http://localhost |
This file contains hidden or 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 | |
#GLOBAL | |
HTTPRESPONSE="json" | |
SUCCESS="success" | |
#TEST | |
#UIARTFCT="target/package.zip" | |
#UILOC="./target/" | |
#AUTHORHOST="localhost" |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>com.foo.www</groupId> | |
<artifactId>fe-package</artifactId> | |
<version>0.1.0</version> |
This file contains hidden or 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
~/Dropbox (National Geographic)/Projects/cq-reference/platform feature/AEM-2478* 13s | |
(vagrant)❯ fab deploy | |
1.7.0 | |
bpdtool.tasks.aem.deploy WARNING No username argument received, using default: admin | |
bpdtool.tasks.aem.deploy WARNING No password argument received, using default: admin | |
[aem.localhost.nationalgeographic.com] Executing task 'check_webapp_access_over_ssh' | |
[aem.localhost.nationalgeographic.com] run: sudo puppet --version | |
[aem.localhost.nationalgeographic.com] out: 3.7.3 (Puppet Enterprise 3.7.1) | |
[aem.localhost.nationalgeographic.com] out: |
This file contains hidden or 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
'use strict'; | |
var tagBody = '(?:[^"\'>]|"[^"]*"|\'[^\']*\')*', | |
tagOrComment = new RegExp( | |
'<(?:' + | |
// Comment body. | |
'!--(?:(?:-*[^->])*--+|-?)' + | |
// Special "raw text" elements whose content should be elided. | |
'|script\\b' + tagBody + '>[\\s\\S]*?</script\\s*' + |
This file contains hidden or 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 | |
# print last timestampe from last two log files | |
# "2016-10-28T14:21:28.022-04:00" | |
# compare the date to now and return if > 5 min | |
# convert date to unix epoch | |
if [ $# = 1 ]; then | |
now=$(date +"%F %T"); | |
if [[ $(date -d `cat $(ls -1tr /syslog/vsynch/app*.log*) | grep "pushing changes" | cut -c1-19 | tail -1` +%s ) > `date -d "$1 secs ago" +%s` ]]; | |
then echo "$now: VSYNC UP" >> /syslog/vsynch/vsync-monitor.log; | |
else mail -s "vsync down!" [email protected],[email protected],[email protected] < /dev/null; |