Skip to content

Instantly share code, notes, and snippets.

@fazy
fazy / keybase.md
Last active October 10, 2020 18:14
Proof of GitHub account for Keybase

Keybase proof

I hereby claim:

  • I am fazy on github.
  • I am fazy (https://keybase.io/fazy) on keybase.
  • I have a public key whose fingerprint is 385E 2499 0E18 65F1 8535 10B0 8DA6 E4D9 6517 BC46

To claim this, I am signing this object:

@fazy
fazy / gist:5568416
Last active December 17, 2015 06:49
Java-based example demonstrating the behaviour of versionable child nodes after an update operation. The expected behaviour is that cloning a node will clone its child, even if the child is versionable, while updating a node will only update the node itself, and not the versionable child.
import javax.jcr.Credentials;
import javax.jcr.Node;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.jcr.Workspace;
import javax.jcr.SimpleCredentials;
import javax.jcr.version.*;
import ch.liip.jcr.davex.DavexClient;
@fazy
fazy / content.yml
Created May 13, 2013 09:08
Example YAML representation of some data fixtures for a Symfony CMF project.
# Content fixtures:
# pages:
# blocks (optional):
# a page without blocks will be created as a category (Category type)
# a page with blocks will be created as a page (Page type)
# pages (optional):
# name (required):
# title (optional):
# route (optional): full route, otherwise route is generated from the name of the page and its parents
#