git commit --amend --no-edit --date "Mon Jul 15 12:15:00 2019 +0900"
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 | |
# 개발환경 완전 자동 설정 v3.1 - 2025년 6월 | |
set -e | |
# 색상 정의 | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[1;33m' | |
BLUE='\033[0;34m' | |
PURPLE='\033[0;35m' |
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
.blind { | |
position: absolute !important; | |
height: 1px; width: 1px; | |
overflow: hidden; | |
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); | |
} |
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
import requests | |
import time | |
from requests.packages.urllib3.exceptions import InsecureRequestWarning | |
requests.packages.urllib3.disable_warnings(InsecureRequestWarning) | |
ID = 'yout id' | |
PASS = 'your pass' | |
MemberNo = "member no found from Fiddler" |
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
public void copyNode(Node node, Node destinationParent) throws RepositoryException { | |
LOG.debug("Copying node '{}' into '{}'", node.getPath(), destinationParent.getPath()); | |
Node newNode = destinationParent.addNode(node.getName(), node.getPrimaryNodeType().getName()); | |
PropertyIterator it = node.getProperties(); | |
while (it.hasNext()) { | |
Property property = it.nextProperty(); | |
if (!property.getDefinition().isProtected()) { | |
newNode | |
.setProperty(property.getName(), property.getValue().getString(), property.getType()); | |
} |
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"?> | |
<jcr:root jcr:primaryType="nt:unstructured" | |
xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
xmlns:nt="http://www.jcp.org/jcr/nt/1.0" | |
xmlns:sling="http://sling.apache.org/jcr/sling/1.0" | |
sling:resourceType="cq/gui/components/authoring/dialog" | |
jcr:title="Slide (Carousel)"> | |
<content | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/container"> |
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
# Adding include/exclude rules to CQ/AEM package filters through cURL. | |
# Through a simple search, you will find numerous lists of CQ/AEM cURL commands. | |
# However, I haven't seen an example of adding rules to package filters. The | |
# JSON "rules" key takes an array value. You can leave the array empty if you | |
# don't need to include any rules. The array is of JSON objects with a | |
# "modifier" key and value of "include" or "exclude", and a "pattern" key with | |
# your path or regular expression as the value. | |
# create package |
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"; | |
/** | |
* Multifield Helper JS Use-api script (for json-based multifield storage) | |
* | |
* @see http://j.mp/29ByR1y [touchui-composite-multifield.js] | |
* | |
* @param mfName node name containing the multifield | |
*/ |
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
var SlingSettingsService = Packages.org.apache.sling.settings.SlingSettingsService; | |
use(function () { | |
// Get runmodes and transform them into an object that is easier to read for Sightly | |
var runmodesObj = {}; | |
var runmodesSet = sling.getService(SlingSettingsService).getRunModes(); | |
var iterator = runmodesSet.iterator(); | |
while (iterator.hasNext()) { | |
runmodesObj[iterator.next()] = true; |
NewerOlder