Skip to content

Instantly share code, notes, and snippets.

Avatar

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
gjoseph / sourcedrop
Last active Aug 29, 2015
Use SourceDrop from the command line
View sourcedrop
#!/bin/sh
# Set SourceDrop's keyboard shortcut to control-option-command-f13 (or whatever, really)
# F13 is code 105 (http://macbiblioblog.blogspot.ch/2014/12/key-codes-for-function-and-special-keys.html)
# 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
./enterprise/advanced-cache:
To git@git.magnolia-cms.com:enterprise/advanced-cache
fc97d7e..8a9f0bf magnolia-module-advanced-cache-1.3.x -> magnolia-module-advanced-cache-1.3.x
8bd8545..1a90aea master -> master
./enterprise/backup:
To git@git.magnolia-cms.com:enterprise/backup
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
someBeans:
- a: first
b: second
- a: third
View 1_Registry
diff --git a/magnolia-configuration/src/main/java/info/magnolia/config/registry/Registry.java b/magnolia-configuration/src/main/java/info/magnolia/config/registry/Registry.java
index 99b54eb..cff3bcf 100644
--- a/magnolia-configuration/src/main/java/info/magnolia/config/registry/Registry.java
+++ b/magnolia-configuration/src/main/java/info/magnolia/config/registry/Registry.java
@@ -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 gitolite-suexec-wrapper.sh
#!/bin/dash
# http://groups.google.com/group/gitolite/browse_thread/thread/071c4a71e5509c0d/5bce97e503466199?pli=1
# http://sitaramc.github.com/gitolite/http.html
#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
fi
View content
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 439: 1120
Define value for property 'groupId': : com.lol
Define value for property 'artifactId': : loltheme
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': com.lol: :
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:
groupId: com.lol
View content
#!/bin/sh
CMD=$@
echo WILL EXECUTE git $CMD
find . -name .git -exec dirname {} \; | while read dir; do
C=`pwd`
cd $dir
#echo "\033[1m`pwd`:\033[0m"
echo "\033[1m$dir:\033[0m"
git $CMD
echo ""
View gitolite-massive-clone.sh
#!/bin/bash
pattern=$1
if [ -z $pattern ]; then
echo "Please pass a pattern ! (e.g 'modules')"
exit -3
fi
output=`ssh git@git.magnolia-cms.com expand $pattern`
echo "$output" | grep '^only' > /dev/null
View content
→ git show 82268d8 --name-status
commit 82268d869172883b45124d20bc7588bd3d096e2d
Author: Grégory Joseph <gregory.joseph@magnolia-cms.com>
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/MagnoliaAccessManager.java
M magnolia-core/src/main/java/info/magnolia/cms/core/search/QueryResultImpl.java
M magnolia-core/src/main/java/info/magnolia/cms/core/version/CopyUtil.java
You can’t perform that action at this time.