Skip to content

Instantly share code, notes, and snippets.

@beckje01
beckje01 / feed.xml
Last active August 20, 2018 12:27
Cassandra atom feed
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.4.3">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2018-08-20T07:13:23-05:00</updated><id>http://localhost:4000/</id><title type="html">Apache Cassandra Website</title><subtitle>The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data. Cassandra's support for replicating across multiple datacenters is best-in-class, providing lower latency for your users and the peace of mind of knowing that you can survive regional outages.
</subtitle><entry><title type="html">Hardware-bound Zero Copy Streaming in Apache Cassandra 4.0</title><l
{states:[
{
state: valid,
startDate: 2013-12-25T21:15Z,
endDate: null
},
{
state: pending,
startDate: 2013-12-25T21:15Z,
endDate: 2013-12-25T21:15Z
@beckje01
beckje01 / sonar-pom.xml
Created July 23, 2013 14:30
Example Pom reusing all unit test details and code coverage.
<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/xsd/maven-4.0.0.xsd'>
<modelVersion>4.0.0</modelVersion>
<groupId>com.greatconf</groupId>
<artifactId>example-api</artifactId>
<version>0.1</version>
<packaging>pom</packaging>
<name>example-api</name>
<build>
<sourceDirectory>
@beckje01
beckje01 / ExposedGSON-withVersion.groovy
Last active December 14, 2015 20:39
Example ExposedGSON
package com.reachlocal.product.gson
import com.google.gson.GsonBuilder
import grails.plugin.gson.converters.GSON
import org.codehaus.groovy.grails.commons.ApplicationHolder
class ExposedGSON extends GSON {
@Lazy
private GsonBuilder gsonBuilder = {
/*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
grails.plugins.springsecurity.saml.keyManager.defaultKey = 'qa' //The self signed key generated
grails.plugins.springsecurity.saml.keyManager.storeFile = 'classpath:security/keystore.jks' //Change to where you have the keystore
grails.plugins.springsecurity.saml.keyManager.storePass = 'password' //Password for the keystore
grails.plugins.springsecurity.saml.keyManager.passwords =['qa':'password'] //Alias and password for each key
@beckje01
beckje01 / BuildConfig.groovy
Created October 15, 2012 19:16
Grails Release Plugin External Maven Config
def mavenConfigFile = new File("${basedir}/grails-app/conf/mavenInfo.groovy")
if (mavenConfigFile.exists()) {
def slurpedMavenInfo = new ConfigSlurper().parse(mavenConfigFile.toURL())
slurpedMavenInfo.grails.project.repos.each {k, v ->
println "Adding maven info for repo $k"
grails.project.repos."$k" = v
}
}
else {
println "No mavenInfo file found."
@beckje01
beckje01 / dateUtils.js
Created May 8, 2011 19:22
A simple set of functions for dealing outputting with ISO dates
/*
* dateUtils.js
*
* A simple set of utilites for dealing with dates
*
*/
function toISOFormat(date)
{
@beckje01
beckje01 / barcheck.js
Created April 18, 2011 19:33
Check for Address Bar in iOS
if(window.navigator.standalone)
{//This page is currently standalone
console.log("stand alone");
}
if(!("standalone" in window.navigator))
{//This Page is shown in a browser that can't
console.log("can't do standalone");
}
@beckje01
beckje01 / Off-left technique
Created April 18, 2011 19:22
Shows how to hide off to the left a jQuery UI tab
.ui-tabs .ui-tabs-hide {
position: absolute;
left: -10000px;
}