Skip to content

Instantly share code, notes, and snippets.

@stomx
stomx / install-dev-environment.sh
Created June 13, 2025 07:12
Node.js 자동 버전 전환 지원 + Zsh 플러그인 통합 탑재 개발환경 설정 스크립트
#!/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'
@stomx
stomx / blind.css
Created June 2, 2020 08:34 — forked from goonoo/blind.css
VoiceOver 등 모든 스크린리더에서 읽어주는 방식의 요소 숨기기 (참고: http://snook.ca/archives/html_and_css/hiding-content-for-accessibility)
.blind {
position: absolute !important;
height: 1px; width: 1px;
overflow: hidden;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
}
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"
@stomx
stomx / JCR_NODE_COPY
Created October 31, 2019 09:25
javax.jcr.Node copy node
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());
}

git commit --amend --no-edit --date "Mon Jul 15 12:15:00 2019 +0900"

@stomx
stomx / cq:dialog (xml File)
Last active May 28, 2019 01:31
Slide sample component
<?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">
@stomx
stomx / AEM Bottom Description
Last active May 2, 2019 04:52
AEM Bottom Description
We couldn’t find that file to show.
@stomx
stomx / curlPackageFilterRules.sh
Created October 16, 2018 08:29 — forked from nateyolles/curlPackageFilterRules.sh
AEM/CQ cURL: Adding include/exclude rules to package filters
# 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
@stomx
stomx / multifield-json.js
Created September 4, 2018 09:32 — forked from radmike/multifield-json.js
Sightly Helpers for ACS AEM Commons Touch UI Multifields
"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
*/
@stomx
stomx / logic.js
Created September 4, 2018 09:16 — forked from gabrielwalt/logic.js
Read AEM runmodes from Sightly
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;