Skip to content

Instantly share code, notes, and snippets.

View jiri-jagos's full-sized avatar

Jiri Jagos jiri-jagos

View GitHub Profile
@phillipgreenii
phillipgreenii / README.md
Last active September 25, 2025 14:56
Running NPM Scripts through maven

I am in the process of introducing single page applications to where I work. For development, using node based build tools is much easier for the single page applications. However, the build process for our organization is based upon maven. Our solution started with the maven plugin frontend-maven-plugin. It worked great at first, but then we ran into a situation that I couldn't make work with it.

As stated before, at our organization, we have the older ecosystem which is maven and the newer ecosystem which is node. Our goal was to keep the hacking to a minimum. We did this by putting all of the hacks into a single super node based build file. This is what maven calls and the reason frontend-maven-plugin wasn't sufficient. The super node based build script calls all of the other build scripts by spawning npm run. Try as I might, I could not figure out how to make the spawn work. front-end-maven-plugin downloads npm

Git Cheat Sheet

Commands

Getting Started

git init

or

@jeremychone
jeremychone / Jackson8Module.java
Last active May 5, 2021 13:21
A simple Java 8 centric Jackson Module wrapper for making custom serializer lambda friendly. (can be extended to support other Jackson Module custom methods)
package com.britecrm.util;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.module.SimpleModule;
@tokuhirom
tokuhirom / DateTimeFormatterSample.java
Last active November 29, 2018 05:54
Java 8 Date And Time API - Sample code.
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
public class DateTimeFormatterSample {
public static void main(String[] args) {
String[][] patterns = new String[][]{
new String[]{"G", "appendText(ChronoField.ERA,"},
@StanAngeloff
StanAngeloff / Makefile
Last active October 11, 2022 19:37
Generate RabbitMQ self-signed certificate authority, server and client certificates.
# See http://www.rabbitmq.com/ssl.html
#
# (c) Stan Angeloff / http://www.gnu.org/licenses/agpl-3.0.html
SHELL := /bin/bash
HOSTNAME ?= $(shell hostname)
PASSPHRASE ?= $(shell cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
PASSPHRASE_FILE = $(HOSTNAME)/.passphrase
anonymous
anonymous / truecrypt.diff
Created May 28, 2014 19:59
truecrypt 7.2 diff
diff --git a/Boot/Windows/BootMain.cpp b/Boot/Windows/BootMain.cpp
index 5d4b942..0b6e6a6 100644
--- a/Boot/Windows/BootMain.cpp
+++ b/Boot/Windows/BootMain.cpp
@@ -75,7 +75,9 @@ static void PrintMainMenu ()
#endif // TC_WINDOWS_BOOT_RESCUE_DISK_MODE
- PrintEndl (3);
+ PrintEndl (2);
package com.objectpartners.buesing.util;
import com.google.common.collect.ImmutableMap;
import org.junit.Assert;
import org.junit.Test;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
package com.objectpartners.buesing.util;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author Neil Buesing
*/
@magnetikonline
magnetikonline / README.md
Last active January 22, 2026 01:32
Setting Nginx FastCGI response buffer sizes.