Skip to content

Instantly share code, notes, and snippets.


Grégory Joseph gjoseph

  • Sydney, Australia
View GitHub Profile
View content
diff --git a/tests/integration-tests-parent/integration-testkit/src/index.js b/tests/integration-tests-parent/integration-testkit/src/index.js
index 565fedf..fee6be1 100644
--- a/tests/integration-tests-parent/integration-testkit/src/index.js
+++ b/tests/integration-tests-parent/integration-testkit/src/index.js
@@ -5,7 +5,7 @@ import * as _logging from "./logging";
export {permissions, PermissionsBackdoor} from "./backdoor/permissions-backdoor";
export {RolesBackdoor} from "./backdoor/roles-backdoor";
-export {SdApiClient, JiraApiClient, ApprovalClient, AtlassianAnalyticsClient, ServiceDeskClient, ReportsClient, RequestsClient} from "./rest-clients";
+export {SdApiClient, JiraApiClient, ApprovalClient, AtlassianAnalyticsClient, ServiceDeskClient, ReportsClient, BackdoorClient, RequestsClient} from "./rest-clients";
gjoseph / sourcedrop
Last active Aug 29, 2015
Use SourceDrop from the command line
View sourcedrop
# Set SourceDrop's keyboard shortcut to control-option-command-f13 (or whatever, really)
# F13 is code 105 (
# Print out stuff and pipe it into this script (e.g cat ~/bin/sourcedrop | sourcedrop)
pbcopy && osascript -e 'tell application "System Events" to key code 105 using {control down, option down, command down}'
View content
WILL EXECUTE git push --all --dry-run
fc97d7e..8a9f0bf magnolia-module-advanced-cache-1.3.x -> magnolia-module-advanced-cache-1.3.x
8bd8545..1a90aea master -> master
6f94c38..3ac993e magnolia-module-backup-1.0.x -> magnolia-module-backup-1.0.x
5718974..fc4218c magnolia-module-backup-1.1.x -> magnolia-module-backup-1.1.x
View with a list:
# This should be a DummyThing
name: myDummyWithListAndMap
title: 'Some title'
enabled: true
level: 4
modelClass: info.magnolia.config.dummy.DummyModel
- a: first
b: second
- a: third
View 1_Registry
diff --git a/magnolia-configuration/src/main/java/info/magnolia/config/registry/ b/magnolia-configuration/src/main/java/info/magnolia/config/registry/
index 99b54eb..cff3bcf 100644
--- a/magnolia-configuration/src/main/java/info/magnolia/config/registry/
+++ b/magnolia-configuration/src/main/java/info/magnolia/config/registry/
@@ -60,6 +60,7 @@ public interface Registry<T> {
* TODO: do we need this method ? Is it usable ? Isn't query() more useful ?
* TODO: if we need it, can it throw a NoSuchDefinitionException? (if you have a metadata instance, it's an IllegalState if it doesn't point to a provider anymore)
View content
# cat
#g3: exec ${GITOLITE_HTTP_HOME}/gitolite-source/src/gitolite-shell
if [ -z "${HTTP_GITOLITE_HTTP_RC+xxx}" ]; then
echo HTTP_GITOLITE_HTTP_RC is not set 1>&2
exit 1
View content
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 439: 1120
Define value for property 'groupId': :
Define value for property 'artifactId': : loltheme
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': :
Define value for property 'magnolia-stk-version': : 1.2.3
Define value for property 'magnolia-version': : 4.5.6
Define value for property 'theme-name': : my-lol-theme
Confirm properties configuration:
View content
find . -name .git -exec dirname {} \; | while read dir; do
cd $dir
#echo "\033[1m`pwd`:\033[0m"
echo "\033[1m$dir:\033[0m"
git $CMD
echo ""
if [ -z $pattern ]; then
echo "Please pass a pattern ! (e.g 'modules')"
exit -3
output=`ssh expand $pattern`
echo "$output" | grep '^only' > /dev/null
View content
→ git show 82268d8 --name-status
commit 82268d869172883b45124d20bc7588bd3d096e2d
Author: Grégory Joseph <>
Date: Mon Aug 18 14:22:47 2014 +0200
QA: Removed unnecessary Object[] creation for methods that take a vararg - mostly log and Method.invoke()
M magnolia-core/src/main/java/info/magnolia/cms/core/
M magnolia-core/src/main/java/info/magnolia/cms/core/search/
M magnolia-core/src/main/java/info/magnolia/cms/core/version/
You can’t perform that action at this time.