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
#!/usr/bin/sh | |
# | |
# An example hook script to check the commit log message. | |
# Called by "git commit" with one argument, the name of the file | |
# that has the commit message. The hook should exit with non-zero | |
# status after issuing an appropriate message if it wants to stop the | |
# commit. The hook is allowed to edit the commit message file. | |
# | |
# To enable this hook, rename this file to "commit-msg". |
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
cpath of entity - enCpath | |
cpath of element - elCpath | |
general element | |
--------------- | |
RUD -> /path/{elCpath} (or /element/{elCpath}? because this isn't consistent with the rest of the REST are we asking for the path of a {elCpath} ?) | |
relationships | |
------------- | |
CRUD -> /relationships/{enCpath} |
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
/*------------------------------------------------------------------------- | |
* | |
* Copyright (c) 2004-2014, PostgreSQL Global Development Group | |
* | |
* | |
*------------------------------------------------------------------------- | |
*/ | |
package org.postgresql.test.leaks; | |
import java.lang.ref.WeakReference; |
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
[alias] | |
tracking-branch = !git for-each-ref --format='%(upstream:short)' $(git symbolic-ref -q HEAD) | |
current-branch = !git rev-parse --abbrev-ref HEAD | |
#last commit | |
last = log -1 | |
#assumes the upstream repo is called origin |
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
Example: | |
<bundle-target> | |
<destination-base-dir name="Deploy Directory" description="The deployment directory for a standalone server"> | |
<value-context>measurementTrait</value-context> | |
<value-name>deployDir</value-name> | |
</destination-base-dir> | |
<special-destination name="Patch Installer" description="Accepts JBoss AS patches and installs them to a standalone server" bundle-type="JBoss AS Patch Bundle"> | |
<value-reference reference-name="host" context="pluginConfiguration" name="hostname"/> | |
<value-reference context="pluginConfiguration" name="port"/> | |
<value-reference context="pluginConfiguration" name="user"/> |
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
import sys | |
sys.path.append("__rhq__:rhq://repositories/my_repo/") | |
import my_script as foo | |
... |
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
public class PythonScriptEngineInitializer implements ScriptEngineInitializer { | |
private static final Log LOG = LogFactory.getLog(PythonScriptEngineInitializer.class); | |
static { | |
Properties props = new Properties(); | |
props.put("python.packages.paths", "java.class.path,sun.boot.class.path"); | |
props.put("python.packages.directories", "java.ext.dirs"); | |
props.put("python.cachedir.skip", false); | |
PythonInterpreter.initialize(System.getProperties(), props, null); |
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
public class PythonScriptEngineProvider implements ScriptEngineProvider { | |
@Override | |
public String getSupportedLanguage() { | |
return "python"; | |
} | |
@Override | |
public ScriptEngineInitializer getInitializer() { | |
return new PythonScriptEngineInitializer(); |
NewerOlder