Skip to content

Instantly share code, notes, and snippets.

View mraible's full-sized avatar

Matt Raible mraible

View GitHub Profile
@mraible
mraible / .yo-rc.json
Created May 19, 2018 22:59
JHipster Performance Numbers
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.okta.developer",
"nativeLanguage": "en"
},
"jhipsterVersion": "5.0.0-beta.1",
"baseName": "blog",
"packageName": "com.okta.developer",
"packageFolder": "com/okta/developer",
@mraible
mraible / jhipster-java10.md
Last active April 3, 2019 21:28
JHipster v5 with Java 10

Thanks to Josh Long's Java 10 blog post for instructions!

  1. Download and install Java 10. Make sure it's the version used when you run java -version.

  2. Clone the JHipster project's master branch:

    git clone https://github.com/jhipster/generator-jhipster.git
    
  3. In the cloned directory, run npm link.

@mraible
mraible / changes.patch
Created January 23, 2018 21:36
Spring Security OAuth > Okta Spring Boot Starter
Index: beer-catalog-service/src/main/resources/application.properties
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- beer-catalog-service/src/main/resources/application.properties (date 1516742237000)
+++ beer-catalog-service/src/main/resources/application.properties (date 1516743091000)
@@ -1,12 +1,4 @@
spring.application.name=beer-catalog-service
@mraible
mraible / car-list.component.ts
Created January 23, 2018 19:44
Unsubscribe in an Angular component
import { Component, OnInit } from '@angular/core';
import { CarService } from '../shared/car/car.service';
import { GiphyService } from '../shared/giphy/giphy.service';
import { Subscription } from 'rxjs/Subscription';
@Component({
selector: 'app-car-list',
templateUrl: './car-list.component.html',
styleUrls: ['./car-list.component.css']
})
@mraible
mraible / package.json-upgrade.patch
Created November 1, 2017 16:48
Upgrade JHipster React Dependencies
Index: package.json
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- package.json (date 1509552724000)
+++ package.json (revision )
@@ -8,95 +8,96 @@
],
"dependencies": {
@mraible
mraible / react-no-i18n.patch
Created November 1, 2017 16:46
JHipster React w/o i18n or Sass
Index: src/main/webapp/app/modules/account/settings/settings.tsx
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/main/webapp/app/modules/account/settings/settings.tsx (date 1509552724000)
+++ src/main/webapp/app/modules/account/settings/settings.tsx (revision )
@@ -1,7 +1,7 @@
/* eslint-disable */ // TODO Fix when page is completed
import * as React from 'react';
@mraible
mraible / generate-pdf.sh
Last active October 12, 2017 21:20
Asciidoctor PDF without Syntax Highlighting
#!/bin/bash
# Usage: `./generate-pdf.sh` to generate a printable 6x9" PDF with no syntax highlighting
# `./generate-pdf.sh screen` to generate a downloadable 8.5x11" PDF
source $HOME/.rvm/scripts/rvm
rvm use 2.3.1 --quiet
if [ ! -d .bundle/gems ]; then
rm -f Gemfile.lock
bundle config --local github.https true
@mraible
mraible / spring-security.log
Created October 5, 2017 19:49
Log messages when running JHipster + Keycloak using Docker Compose
blog-app_1 | 2017-10-05 19:45:12.088 DEBUG 8 --- [ XNIO-2 task-8] o.s.s.web.DefaultRedirectStrategy : Redirecting to 'http://localhost:9080/auth/realms/jhipster/protocol/openid-connect/auth?client_id=web_app&redirect_uri=http://localhost:8080/login&response_type=code&scope=openid%20profile%20email&state=5GJ3N9'
blog-app_1 | 2017-10-05 19:45:16.630 DEBUG 8 --- [ XNIO-2 task-9] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/css/**']
blog-app_1 | 2017-10-05 19:45:16.631 DEBUG 8 --- [ XNIO-2 task-9] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/login'; against '/css/**'
blog-app_1 | 2017-10-05 19:45:16.631 DEBUG 8 --- [ XNIO-2 task-9] o.s.s.web.util.matcher.OrRequestMatcher : Trying to match using Ant [pattern='/js/**']
blog-app_1 | 2017-10-05 19:45:16.631 DEBUG 8 --- [ XNIO-2 task-9] o.s.s.w.u.matcher.AntPathRequestMatcher : Checking match of request : '/login'; against '/js/**'
blog-app_1 |
@mraible
mraible / gradle.patch
Last active November 30, 2017 08:23
Java 9 Patch for JHipster
diff --git a/build.gradle b/build.gradle
index 9baeffa..0a3599c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -23,8 +23,8 @@ plugins {
}
apply plugin: 'java'
-sourceCompatibility=1.8
-targetCompatibility=1.8