Skip to content

Instantly share code, notes, and snippets.

View serpensalbus's full-sized avatar

Lars Fischer serpensalbus

View GitHub Profile
<!-- Die Vorlage stammt von der Seite http://labs.finn.no/blog/finn-anbefaler-ie6-brukere-a-oppgradere-sin-nettleser >
<!--[if lte IE 6]>
<span class="ie6box" style="direction: ltr; text-align: left;">
<style type="text/css">
#ie6msg {border:3px solid #090; margin: 65px 250px 10px 250px; background:#cfc; color:#000;}
#ie6msg h4{margin:8px; padding:0; font-weight: bold}
#ie6msg p{margin:8px; padding:0;}
#ie6msg p a.getie7{font-weight:bold; color:#006;}
#ie6msg p a.ie6expl{font-weight:normal; color:#006;}
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
@serpensalbus
serpensalbus / config-magnolia.js
Created July 30, 2016 12:32
Custom Magnolia RIchText field CKEditor configuration file
CKEDITOR.plugins.addExternal("codemirror", CKEDITOR.vaadinDirUrl + "js/codemirror/");
CKEDITOR.editorConfig = function( config ) {
// MIRROR info.magnolia.ui.form.field.definition.RichTextFieldDefinition
definition = {
alignment: false,
images: true,
lists: true,
source: true,
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>info.magnolia.project</groupId>
<artifactId>magnolia-cargo-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>magnolia-cargo-demo-webapp</artifactId>
@serpensalbus
serpensalbus / jackrabbit-bundle-mysql-search-author.xml
Created September 15, 2016 14:33
Jackrabbit MySQL configuration for a Magnolia author instance using a JNDI connection
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<Repository>
<DataSources>
<DataSource name="magnolia">
<param name="driver" value="javax.naming.InitialContext"/>
<param name="url" value="java:comp/env/jdbc/MagnoliaAuthor"/>
<param name="databaseType" value="mysql"/>
</DataSource>
</DataSources>
@serpensalbus
serpensalbus / CategoryColumnComparator.java
Created February 23, 2017 12:53
Custom sorting of columns in Magnolia 5 content apps
package com.serpensalbus.magnolia.articles.app.workbench;
import info.magnolia.ui.vaadin.integration.jcr.JcrItemId;
import info.magnolia.ui.vaadin.integration.jcr.JcrItemUtil;
import java.util.Comparator;
import javax.jcr.Item;
import javax.jcr.Node;
@serpensalbus
serpensalbus / jackrabbit-bundle-postgres-search.xml
Last active January 18, 2022 10:20
JCR / Jackrabbit configuration for using Magnolia CMS with PostgreSQL.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<Repository>
<DataSources>
<DataSource name="magnolia">
<param name="driver" value="org.postgresql.Driver" />
<param name="url" value="jdbc:postgresql://localhost:5432/magnolia" />
<param name="user" value="mgnl" />
<param name="password" value="mgnlpass" />
<param name="databaseType" value="postgresql"/>
@serpensalbus
serpensalbus / jackrabbit-bundle-postgres-search-database.xml
Last active January 18, 2022 10:25
JCR / Jackrabbit configuration for using Magnolia CMS with PostgreSQL without filesystem.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<Repository>
<DataSources>
<DataSource name="magnolia">
<param name="driver" value="org.postgresql.Driver" />
<param name="url" value="jdbc:postgresql://localhost:5432/magnolia" />
<param name="user" value="mgnl" />
<param name="password" value="mgnlpass" />
<param name="databaseType" value="postgresql"/>
{"issuer":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral","authorization_endpoint":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/auth","token_endpoint":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/token","token_introspection_endpoint":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/token/introspect","userinfo_endpoint":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/userinfo","end_session_endpoint":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/logout","jwks_uri":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/certs","check_session_iframe":"http://localhost:8180/auth/realms/Magnolia%20AdminCentral/protocol/openid-connect/login-status-iframe.html","grant_types_supported":["authorization_code","implicit","refresh_token","password","client_credentials"],"response_types_supported":["code",