gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
var guid = function() { | |
var nav = window.navigator; | |
var screen = window.screen; | |
var guid = nav.mimeTypes.length; | |
guid += nav.userAgent.replace(/\D+/g, ''); | |
guid += nav.plugins.length; | |
guid += screen.height || ''; | |
guid += screen.width || ''; | |
guid += screen.pixelDepth || ''; |
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
//SaveforWebSP.jsx | |
var docRef = activeDocument; | |
var outputFolder = docRef.path; | |
var segments = app.activeDocument.name.split("."); | |
segments.splice(segments.length - 1, 1); | |
var docName = segments.join("."); | |
var fileName = prompt("Please Enter a file name without extension?", docName); | |
var safeFileName = fileName.replace(/[^A-Z0-9]+/ig, "_"); |
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
FROM php:7.1.2-apache | |
RUN apt-get update && \ | |
apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev && \ | |
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \ | |
docker-php-ext-install gd | |
RUN docker-php-ext-install mysqli |
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
# Ask for the administrator password upfront. | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until the script has finished. | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
# Apps | |
apps=( | |
java | |
docker |
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/sh | |
# UNINSTALL PACKAGES | |
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/adobe/aem6/sample/we.retail.download-1.0.8.zip?cmd=uninstall | |
sleep 2 | |
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/adobe/aem6/sample/we.retail.download-1.0.8.zip?cmd=delete | |
sleep 2 | |
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/aemfd/cq-geometrixx-gov-pkg-3.0.6.zip?cmd=uninstall | |
sleep 2 |
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 strict"; | |
use(function() { | |
var url = this.api, | |
getRequest = new org.apache.commons.httpclient.methods.GetMethod(url), | |
client = new org.apache.commons.httpclient.HttpClient(), | |
status = new org.apache.commons.httpclient.HttpStatus(), | |
inputStream; | |
console.log("Retrieving data from " + url); | |
try { | |
var statusCode = client.executeMethod(getRequest); |
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
JSON.fix = function(obj) { | |
return obj.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g, '"$2": '); | |
}; |
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
var triggerCallback = CQ.Ext.extend(CQ.Ext.form.TriggerField, { | |
initComponent: function() { | |
triggerCallback.superclass.initComponent.call(this) | |
}, | |
triggerClass: "x-form-search-trigger", | |
onTriggerClick: function() { | |
if(this.callback) { | |
this.callback.call(this); | |
} | |
}, |
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
window.serialize = { | |
simple(form) { | |
const formel = document.querySelectorAll(form); | |
const inputs = formel[0].querySelectorAll("input, select, textarea"); | |
const obj = {}; | |
let key; | |
for (key in inputs) { | |
if (inputs[key].tagName) { | |
if (inputs[key].type === "checkbox") { | |
obj[inputs[key].name] = inputs[key].checked === true ? inputs[key].value : false; |
NewerOlder