Skip to content

Instantly share code, notes, and snippets.

View KevDog's full-sized avatar
🎵
Rocking and Rolling

Kevin Stevens KevDog

🎵
Rocking and Rolling
View GitHub Profile
public static String pagePathUrl(String path) {
if(path == null || path.equals("") || path.equals("#") || checkIfExternalURL(path)) {
return path;
} else {
try {
Session session = getSession();
log.debug("HtmlUtils checking if path exists:" + path);
if (session.itemExists(path)) {
String redirectPropPath = path + "/jcr:content/redirectTarget";
if(session.itemExists(redirectPropPath)) {
@KevDog
KevDog / gist:9814049
Created March 27, 2014 18:00
keybase.md
### Keybase proof
I hereby claim:
* I am kevdog on github.
* I am KevDog (https://keybase.io/KevDog) on keybase.
* I have a public key whose fingerprint is 852B 1453 918F D6B0 2FF3 FDCD 4896 C1C5 F11E 6612
To claim this, I am signing this object:
@KevDog
KevDog / gist:5084138
Created March 4, 2013 18:00
/etc/riak/app.config from testing. There is no section for 1.2.
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
[
%% Riak Client APIs config
{riak_api, [
%% pb_backlog is the maximum length to which the queue of pending
%% connections may grow. If set, it must be an integer >= 0.
%% By default the value is 5. If you anticipate a huge number of
%% connections being initialised *simultaneously*, set this number
%% higher.
@KevDog
KevDog / gist:5083496
Created March 4, 2013 16:29
This is the app.config that was generated when I tested
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
[
%% Riak Client APIs config
{riak_api, [
%% pb_backlog is the maximum length to which the queue of pending
%% connections may grow. If set, it must be an integer >= 0.
%% By default the value is 5. If you anticipate a huge number of
%% connections being initialised *simultaneously*, set this number
%% higher.
@KevDog
KevDog / dabblet.css
Created January 26, 2012 00:43
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background:
linear-gradient(-45deg, rgb(255, 223, 125) 22px, #fff2ca 22px, #fff2ca 24px, transparent 24px, transparent 67px, #fff2ca 67px, #fff2ca 69px, transparent 69px),
linear-gradient(225deg, rgb(255, 223, 125) 22px, #fff2ca 22px, #fff2ca 24px, transparent 24px, transparent 67px, #fff2ca 67px, #fff2ca 69px, transparent 69px)0 64px;
background-color:rgb(255, 223, 125);
background-size: 64px 128px