openssl genrsa -des3 -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pem
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
# Required modules | |
LoadModule proxy_module modules/mod_proxy.so | |
# Maybe this one is not needed | |
LoadModule proxy_html_module modules/mod_proxy_html.so | |
LoadModule proxy_http_module modules/mod_proxy_http.so | |
LoadModule rewrite_module modules/mod_rewrite.so | |
LoadModule auth_ntlm_module modules/mod_authn_ntlm.so | |
... Skipped ... (or "Elided" for fancy folks) |
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
@GenModel( | |
suppressGenModelAnnotations="false", | |
featureDelegation="Reflective", | |
modelPluginVariables="org.eclipse.xtext.xbase.lib org.eclipse.emf.ecore.xcore.lib CDO=org.eclipse.emf.cdo", | |
rootExtendsClass="org.eclipse.emf.internal.cdo.CDOObjectImpl", | |
rootExtendsInterface="org.eclipse.emf.cdo.CDOObject" | |
) |
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
jQuery(document).ready(function () { | |
var tocSelector = "#dw__toc"; | |
var top = jQuery(tocSelector).offset().top - parseFloat(jQuery(tocSelector).css('marginTop').replace(/auto/, 0)); | |
jQuery(window).scroll(function (event) { | |
// what the y position of the scroll is | |
var y = jQuery(this).scrollTop(); | |
var toc = jQuery(tocSelector); | |
if (y >= top) { | |
// if so, ad the fixed class |
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
if (request.getAttribute(org.eclipse.jetty.server.Request.__MULTIPART_CONFIG_ELEMENT) == null) { | |
request.setAttribute(org.eclipse.jetty.server.Request.__MULTIPART_CONFIG_ELEMENT, org.eclipse.jetty.util.MultiPartInputStreamParser.__DEFAULT_MULTIPART_CONFIG); | |
} |
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
// --- Imports --- | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.TreeSet; | |
import org.eclipse.core.resources.IFile; | |
import org.eclipse.core.resources.IWorkspace; |
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
ICompilationUnit compilationUnit = null; // TODO - initialize | |
ICoreRunnable rewriteRunnable = new ICoreRunnable() { | |
@Override | |
public void run(IProgressMonitor monitor) throws CoreException { | |
// TODO - create sub-monitors for different steps. | |
ICompilationUnit workingCopy = compilationUnit.getWorkingCopy(monitor); | |
try { |
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
// Dependencies: org.eclipse.emf.ecore, org.eclipse.emf.ecore.xmi | |
// Create a resource set to hold the resources. | |
// Create resource set or use existing | |
ResourceSet resourceSet = new ResourceSetImpl(); | |
// Register the appropriate resource factory to handle all file extensions. | |
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl()); | |
// Register the package to ensure it is available during loading. |
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
@RouteMethod( | |
path="index.html", | |
value = { RequestMethod.GET, RequestMethod.POST }, | |
lock = @RouteMethod.Lock(type = Type.READ, path = ".."), | |
comment="Renders login form on GET, processes it on POST") | |
public Object indexHtml( | |
@ContextParameter CDOTransactionHttpServletRequestContext<LoginPasswordCredentials> context, | |
@TargetParameter Guest target, | |
@QueryParameter("url") String returnURL, | |
@QueryParameter("login") String login, |
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 java.io.File; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; | |
import javax.xml.transform.Transformer; | |
import javax.xml.transform.TransformerFactory; | |
import javax.xml.transform.dom.DOMSource; | |
import javax.xml.transform.stream.StreamResult; | |
import javax.xml.xpath.XPath; |
OlderNewer