Skip to content

Instantly share code, notes, and snippets.

View chrispauley's full-sized avatar

Chris Pauley chrispauley

View GitHub Profile
@chrispauley
chrispauley / java_list_classes command
Created October 18, 2018 13:57
Create an index of classes in a lib directory
[Stackoverflow attibution](https://stackoverflow.com/questions/15601469/jar-not-loaded-see-servlet-spec-2-3-section-9-7-2-offending-class-javax-serv)
You may find the following windows command line useful in tracking down the offending jar file.
it creates an index of all the class files in all the jars in the folder. Execute from within the lib folder of your deployed app,
then search the index.txt file for the offending class.
for /r %X in (*.jar) do (echo %X & jar -tf %X) >> index.txt
@chrispauley
chrispauley / gulp.project.gist.md
Created May 8, 2018 11:37
Simple Gulpjs taskrunner configuration for pug and scss integration into a project

Add Gulpjs to a Project

npm install --save-dev gulp gulp-pug gulp-sass gulp-sourcemaps gulp-autoprefixer browser-sync

gulpfile.babel.js

Here is a sample gulpfile for composing static webpages using pug and scss.

# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
@chrispauley
chrispauley / gulp-merge-json-task
Last active August 9, 2017 12:31
Gulp-merge-json task
// https://tusharghate.com/rendering-pug-templates-with-multiple-data-files
// Causes a deep merge into one combined json file.
gulp.task('pug:combined', function() {
return gulp.src('src/data/**/*.json')
.pipe(merge({
fileName: 'combined.json'
}))
.pipe(gulp.dest('temp'));
});