Parses the timings from the request log and gives a report by hour.
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
HOSTNAME="localhost" | |
CONTENTPATH="/content/test/jcr:content/topwidecopy/itemlist_7fbd" | |
curl "http://admin:admin@${HOSTNAME}:4502/${CONTENTPATH}.json" -o body.json | |
curl "http://admin:admin@${HOSTNAME}:4502/${CONTENTPATH}" -F":operation=import" -F":contentType=json" -F":content=@body.json" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
curl -u admin:PASSWORD -T FILENAMETOUPLOAD http://HOSTNAME.bestwestern.com:4505/PATHONSERVER |
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
- Set user password in CQ WCM | |
- Open Explorer --> Right click Computer --> Map Network Drive | |
- Enter http://<<<CUT>>>:4502/crx/repository/crx.default/var/dam/01 and Select Connect using different credentials | |
Log Sample | |
> <<<CUT>>> - - [17/Jun/2014:15:34:26 -0700] "PROPFIND /crx/repository/crx.default/var/dam/01 HTTP/1.1" 401 - "-" "Microsoft-WebDAV-MiniRedir/6.1.7601" | |
> <<<CUT>>> - - [17/Jun/2014:15:35:57 -0700] "PROPFIND /crx/repository/crx.default/var/dam/01 HTTP/1.1" 207 0 "-" "Microsoft-WebDAV-MiniRedir/6.1.7601" |
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
Set WshShell = CreateObject("WScript.Shell" ) | |
WshShell.Run chr(34) & "V:\Goodsync\Development\startvpn.bat" & Chr(34), 0 | |
Set WshShell = Nothing |
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
Inside FindReplaceDialog.js | |
//RFC27135 | |
var _env=window.location.pathname.split( '/' )[1]; | |
var action = '/'+_env+this .getField("s").getValue() + | |
CQ.wcm.FindReplaceDialog.SUFFIX_REPLACE; | |
this.form.baseParams = {"p" :[]}; | |
Inside BulkEditor.js |
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
###Run a shell or dos command and get the output | |
eg.result = None | |
from subprocess import Popen, PIPE, STDOUT, SW_HIDE | |
def popen(cmd): | |
proc = Popen(cmd.split(),stdout = PIPE,stderr = STDOUT,creationflags = SW_HIDE, shell = True) | |
data = proc.communicate()[0] | |
return (proc.returncode, data) | |
ret, data = popen("ipconfig") | |
print data |
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
curl -u "admin:admin" "http://<<<CUT>>>:4505/crx/browser/delete_recursive.jsp?action=delete&Path=/apps/test/install/apps-src.jar" |
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
curl -u admin:admin | |
'http://<<<CUT>>>:4502/libs/cq/security/authorizables/POST' -d 'status=browser' -d 'email=' -d | |
'familyName=asdf1012' -d 'givenName=asdf1012' -d 'intermediatePath=' -d 'rep:password=bwi123' -d | |
'rep:password=bwi123' -d 'rep:userId=asdf1012' |