Skip to content

Instantly share code, notes, and snippets.

View dparoulek's full-sized avatar

Dave Paroulek dparoulek

  • Fredericksburg, VA
View GitHub Profile
@dparoulek
dparoulek / project.clj
Last active August 29, 2015 13:56
repl-env OutOfMemoryError
(defproject replenv "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
[org.clojure/clojurescript "0.0-2134"]]
:plugins [[lein-cljsbuild "1.0.2"]
[lein-ring "0.8.8"]
[com.cemerick/austin "0.1.3"]])
<VirtualHost *:80>
ServerAdmin upgradingdave@gmail.com
ServerName dev.sis.com
# ServerAlias dev.sis.com
ErrorLog "logs/sis-error_log"
CustomLog "logs/sis-access_log" common
<Location />
Order allow,deny
@dparoulek
dparoulek / fiddle.response.json
Created May 6, 2013 15:59
Fiddle Users json response
[{name:'Bob'},{name:'Joe'}]
@dparoulek
dparoulek / error
Created May 9, 2012 21:10
access gems from java
/usr/lib/jvm/java-7-oracle/bin/java -Didea.launcher.port=7534 -Didea.launcher.bin.path=/usr/local/intellij/idea-IU-117.105/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-7-oracle/jre/lib/deploy.jar:/usr/lib/jvm/java-7-oracle/jre/lib/management-agent.jar:/usr/lib/jvm/java-7-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-7-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-7-oracle/jre/lib/javaws.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jce.jar:/usr/lib/jvm/java-7-oracle/jre/lib/rt.jar:/usr/lib/jvm/java-7-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-7-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-7-oracle/jre/lib/ext/sunec.jar:/home/dparoulek/code/java/compass-test/target/classes:/home/dparoulek/.m2/repository/org/eclipse/jetty/jetty-servlet/7.6.3.v2012041
jersey-server (228)
-------------------
Manifest-Version = 1.0
Build-Id = 1.7 05/20/2011 11:04 AM
Bnd-LastModified = 1305882286700
Tool = Bnd-0.0.255
Built-By = jerseyrobot
Implementation-Version = 1.7
Build-Jdk = 1.6.0_20
Implementation-Vendor-Id = com.sun.jersey
@dparoulek
dparoulek / headers 335
Created March 16, 2012 15:13
karaf troubleshooting
karaf@root>headers 335
jersey-server (335)
-------------------
Manifest-Version = 1.0
Build-Id = 1.8 06/24/2011 12:17 PM
Bnd-LastModified = 1308910646750
Tool = Bnd-0.0.255
Built-By = jerseyrobot
Implementation-Version = 1.8
@dparoulek
dparoulek / project.clj
Created February 29, 2012 16:19
pallet quickstart
(defproject quickstart "1.0.0-SNAPSHOT"
:description "First steps with pallet"
:dependencies [[org.clojure/clojure "1.2.1"]
[org.cloudhoist/pallet "0.6.7"]
[org.cloudhoist/pallet-crates-all "0.5.0"]
[org.jclouds/jclouds-all "1.0.0"]
[org.jclouds.driver/jclouds-jsch "1.0.0"]
[org.jclouds.driver/jclouds-log4j "1.0.0"]
[org.slf4j/slf4j-api "1.6.1"]
[ch.qos.logback/logback-core "1.0.0"]
@dparoulek
dparoulek / TestSpringIntegration.java
Created February 6, 2012 17:25
Manually instantiate spring-integration objects inside junit test
package foo.input.file;
import foo.input.file.FileResponder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
@dparoulek
dparoulek / settings.xml
Created January 16, 2012 19:59 — forked from rocketraman/settings.xml
Maven settings file for VIVO repository artifact upload
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>username</username>
<password>password</password>
<id>vivosys-release</id>
</server>
<server>
jQuery(document).ready(updateLinks);
// Remove all event handlers from elements that have the 'elementMatcher' somewhere in the event handler function
function updateEventHandlers(elementMatcher, eventHandlerType, urlFrom, urlTo){
jQuery.each(jQuery(elementMatcher), function(){
var methodString = jQuery(this).attr(eventHandlerType).toString();
//alert("Going to remove, update and then add the following method back:\n"+ methodString)
//create an "oldmethod" attribute and assign it the FUNCTION DEFINITION of the even handler method (in order to cache it for later use)
jQuery(this).attr("oldmethod", jQuery(this).attr(eventHandlerType).toString());
//remove the function bind