This file contains hidden or 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 | |
if [ $# -lt 1 ] ; then | |
echo "Pushes the current branch to your personal github repo," | |
echo "then issues a pull request of that branch to sakaiproject." | |
echo "usage: git pushpr <pull request title>" | |
exit 0 | |
fi | |
######### setup ######### | |
GITNAME=johndoe | |
GITPASS=supersecret |
This file contains hidden or 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
Session adminSession = null; | |
try { | |
adminSession = repository.loginAdministrative(); | |
// do whatever with the admin session | |
} finally { | |
if (adminSession != null) { | |
try { | |
adminSession.logout(); | |
} catch (Exception e) { | |
LOGGER.error("Could not logout administrative session."); |
This file contains hidden or 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 | |
rm -rf sling | |
mkdir sling | |
cp -r sling-1.1/* sling/ | |
rm -rf sling/felix sling/startup org.apache.sling.launchpad.base.jar* | |
./tools/sanitize_config_files.sh ./sling |
This file contains hidden or 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
__extend__(HTMLElement.prototype,{ | |
set innerHTML(html){ | |
HTMLParser.parseFragment(html, this); | |
} | |
}); |
This file contains hidden or 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
Migrators : { | |
/** | |
* Run through the structure0 page structure object and update all of the | |
* pages that haven't been migrated yet | |
* @param {Object} structure0 Sakai Doc's structure0 object. Contains | |
* the page structure and references | |
* @param {Object} originalstructure The full Sakai Doc object. Contains the | |
* full structure0 object and page objects | |
* @param {Object} json Migrated object that will be returned |
This file contains hidden or 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
mvn archetype:generate -DarchetypeGroupId=org.sakaiproject.nakamura \ | |
-DarchetypeArtifactId=org.sakaiproject.nakamura.acme-archetype \ | |
-DarchetypeVersion=1.1 \ | |
-DarchetypeRepository=https://source.sakaiproject.org/maven2/ |
This file contains hidden or 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
-> % gem list | |
*** LOCAL GEMS *** | |
bundler (1.0.22) | |
curb (0.7.17) | |
json (1.6.4) | |
nakamura (0.6, 0.4, 0.3) | |
rake (0.9.2) | |
zach@Zachs-Mac [03:58:31] [~/dev/nakamura/testscripts/SlingRuby/tests] [search-broken *] |
This file contains hidden or 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
{ | |
"items": 18, | |
"results": [{ | |
"hash": "suzy", | |
"basic": { | |
"access": "everybody", | |
"elements": { | |
"lastName": { | |
"value": "Queue" | |
}, |
This file contains hidden or 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
AUTHORIZABLES | |
g (11) | |
sakai:group-description | |
sakai:creatorRole | |
sakai:role-title-plural | |
contentCount | |
principals | |
type | |
rep:group-managers | |
sakai:roles |
This file contains hidden or 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
Manifest-Version: 1.0 | |
Service-Component: OSGI-INF/core-serviceComponents.xml,OSGI-INF/servic | |
eComponents.xml | |
Export-Package: org.sakaiproject.nakamura.api.lite.authorizable;uses:= | |
"org.sakaiproject.nakamura.api.lite,org.sakaiproject.nakamura.api.lit | |
e.util,org.sakaiproject.nakamura.api.lite.accesscontrol,org.slf4j,com | |
.google.common.collect,org.apache.commons.lang,javax.security.auth",o | |
rg.sakaiproject.nakamura.api.lite;uses:="org.sakaiproject.nakamura.ap | |
i.lite.accesscontrol,org.sakaiproject.nakamura.api.lite.authorizable, | |
org.sakaiproject.nakamura.api.lite.content,org.sakaiproject.nakamura. |