Skip to content

Instantly share code, notes, and snippets.

@jonbullock
jonbullock / WordPress.java
Last active December 18, 2015 20:39
WordPress import script for JBake
package org.jbake.launcher;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.sql.Connection;
import java.sql.Driver;
@jonbullock
jonbullock / error.log
Last active December 18, 2015 21:19
CommaFeed error during Maven build
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CommaFeed 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ commafeed ---
[INFO]
[INFO] --- gmaven-plugin:1.5:execute (default) @ commafeed ---
[INFO]
@jonbullock
jonbullock / maven.log
Created August 8, 2013 12:43
Error while building CommaFeed using: mvn clean package tomee:build -Pprod
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CommaFeed 1.2.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ commafeed ---
[INFO] Deleting /home/jon/tmp/commafeed-master/target
[INFO]
[INFO] --- git-commit-id-plugin:2.1.5:revision (default) @ commafeed ---
@jonbullock
jonbullock / test.ad
Last active December 20, 2015 21:29
AsciiDoc formatted content file for JBake.org
title=AsciiDoc Test
type=post
tags=asciidoc
date=2013-07-29
status=published
~~~~~~
= Enjoy the magic of Asciidoctor in Java
Alex Soto
2013-04-18
:revdate: 2013-04-18 21:43:51 -0600
@jonbullock
jonbullock / .project
Created February 18, 2014 19:56
JBake Eclipse settings
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jbake-core</name>
<comment>JBake is a Java based open source static site/blog generator for developers. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
</buildCommand>
<buildCommand>

Keybase proof

I hereby claim:

  • I am jonbullock on github.
  • I am jonbullock (https://keybase.io/jonbullock) on keybase.
  • I have a public key whose fingerprint is 53CF 77A4 0901 23B5 0351 65C3 6ACB F2EE DC33 2822

To claim this, I am signing this object:

@jonbullock
jonbullock / asciidoc.adoc
Created October 30, 2014 13:10
JBake custom feed file

Asciidoc Feed

This file is created just to trigger the rendering of a file using the template file customfeed.ftl which wouldn’t use any of the content in this file.

@jonbullock
jonbullock / contributing.asciidoc
Last active July 25, 2016 07:50
JBake proposed contributors guide

Contributing

#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 4
#define NUM_LEDS 16
#define BRIGHTNESS 25
@jonbullock
jonbullock / Renderer.java
Last active January 30, 2017 21:05
RendererTest for path with dot in it and output file without extension
/**
* Creates a new instance of Renderer with supplied references to folders.
*
* @param db The database holding the content
* @param destination The destination folder
* @param templatesPath The templates folder
* @param config
* @param renderingEngine The instance of DelegatingTemplateEngine to use
*/
public Renderer(ContentStore db, File destination, File templatesPath, CompositeConfiguration config, DelegatingTemplateEngine renderingEngine) {