Skip to content

Instantly share code, notes, and snippets.

Dmytro Liakhov dlyahov

Block or report user

Report or block dlyahov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@CristinaSolana
CristinaSolana / gist:1885435
Created Feb 22, 2012
Keeping a fork up to date
View gist:1885435

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@lloc
lloc / sort-array-like-object.js
Created Jun 6, 2014
Sort an array-like object with underscore.js
View sort-array-like-object.js
var i, key, pairs,
obj = {'4': 'alpha', '2': 'beta', '5': 'gamma', '1': 'delta', '3': 'epsilon'};
for (key in obj) {
console.log(key + ': ' + obj[key]);
}
pairs = _.pairs(obj);
obj = _.sortBy(pairs, function (item) { return item[1]; });
@dlyahov
dlyahov / UploadSampleFIle.kt
Last active Sep 3, 2019
Creating and uploading file to AEM instance via CRX using wcm.io tools
View UploadSampleFIle.kt
package org.aem.sync.kotlin
import io.wcm.tooling.commons.contentpackagebuilder.ContentPackageBuilder
import io.wcm.tooling.commons.packmgr.PackageManagerProperties
import io.wcm.tooling.commons.packmgr.install.PackageFile
import io.wcm.tooling.commons.packmgr.install.PackageInstaller
import io.wcm.tooling.commons.packmgr.install.VendorInstallerFactory
import java.io.File
fun main(args: Array<String>) {
You can’t perform that action at this time.