Skip to content

Instantly share code, notes, and snippets.

@dploeger
dploeger / gist:f28275ce20f2e8c8922a
Created October 14, 2014 13:33
Calling Zimbra internal auth from a custom auth extension
String encodedPassword = acct.getAttr(Provisioning.A_userPassword);
if (acct instanceof LdapEntry) {
LdapProvisioning prov = (LdapProvisioning) acct.getProvisioning();
prov.zimbraLdapAuthenticate(acct, password, context);
return; // good password, RETURN
@dploeger
dploeger / gist:6898931
Last active December 25, 2015 01:59
Add xsd:dateTime-arguments for SOAP in Ladon:
In ladon/compat.py:
add to first lines:
from datetime import datetime
and in line #24:
type_to_xsd = {
int: 'long',
long: 'long',
@dploeger
dploeger / local.properties
Created August 22, 2016 07:03
local.properties related to clustering
#
# Clustering
#
clustermode=true
cluster.id=0
cluster.maxid=1
cluster.broadcast.methods=jgroups
cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.JGroupsBroadcastMethod
# Local cluster-IP (WARNING! Change on other node!)
cluster.broadcast.method.jgroups.tcp.bind_addr=172.16.1.5
@dploeger
dploeger / jgroups-tcp.xml
Created August 23, 2016 06:42
JGroups TCP configuration
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8">
<Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false"
notifyListenersOnReplication="true"/>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership className="org.apache.catalina.tribes.membership.McastService"
address="228.0.0.4"
let Vaulted = require('vaulted');
let fs = require('fs');
let myVault = new Vaulted({
vault_host: 'localhost',
vault_port: 8200,
vault_ssl: false
});
myVault.prepare()
<idea-plugin>
<id>de.dieploegers.develop.idea.custommark</id>
<name>Custom Mark</name>
<version>0.1.0</version>
<vendor email="develop@dieploegers.de" url="http://www.yourcompany.com">YourCompany</vendor>
<description><![CDATA[
Create custom markings based on regular expressions.
]]></description>
package de.dieploegers.develop.idea.custommark.annotators
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.lang.annotation.HighlightSeverity
import com.intellij.openapi.editor.markup.EffectType
import com.intellij.openapi.editor.markup.TextAttributes
import com.intellij.psi.PsiElement
import java.awt.Color
package de.dieploegers.develop.idea.custommark
import com.intellij.codeInsight.daemon.RelatedItemLineMarkerInfo
import com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider
import com.intellij.codeInsight.navigation.NavigationGutterIconBuilder
import com.intellij.icons.AllIcons
import com.intellij.ide.util.DefaultPsiElementCellRenderer
import com.intellij.psi.PsiElement
import java.awt.Color
package de.dieploegers.develop.idea.custommark
import com.intellij.openapi.editor.EditorLinePainter
import com.intellij.openapi.editor.LineExtensionInfo
import com.intellij.openapi.editor.markup.EffectType
import com.intellij.openapi.editor.markup.TextAttributes
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import java.awt.Color
@dploeger
dploeger / Migration.md
Last active April 18, 2018 03:26
Migration Notes Godot 2 => Godot 3