Skip to content

Instantly share code, notes, and snippets.

import grails.compiler.GrailsCompileStatic
import groovy.transform.SelfType
import grails.artefact.Controller
import org.springframework.http.HttpStatus
import static org.springframework.http.HttpStatus.*
@SelfType(Controller)
trait ResponseTrait {
09:29:54: Executing task 'bootRun'...
Connected to the target VM, address: '127.0.0.1:54374', transport: 'socket'
> Task :server:compileJava NO-SOURCE
> Task :server:compileGroovy
> Task :server:buildProperties UP-TO-DATE
> Task :server:processResources
> Task :server:classes
> Task :server:findMainClass
Connected to the VM started by ':server:bootRun' (localhost:54387). Open the debugger session tab
@erichelgeson
erichelgeson / Grails_Groovy_Versions.txt
Created July 31, 2018 21:11 — forked from ishults/Grails_Groovy_Versions.txt
List of Groovy version for Grails
// Compiled by Igor Shults
// Last Updated: Dec 8, 2017
GRAILS GROOVY SOURCE
3.3.2 2.4.13 https://github.com/grails/grails-core/blob/3.3.x/build.gradle
3.3.1 2.4.11
3.3.0 2.4.11
3.2.11 2.4.11 https://github.com/grails/grails-core/blob/d85666969f3ef38386115d206f63dda552f94cbd/build.gradle
3.2.10 2.4.10
@erichelgeson
erichelgeson / wm.html
Created February 22, 2018 02:53
Vue.js app to get upcoming trash scheudle.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.3/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.15.3/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
class Movie {
String title
}
class User {
String name
}
class Rating {
Movie movie
<html>
<head>
<meta http-equiv="Content-Security-Policy"
content="default-src 'self' 'unsafe-inline' https://* https://api.stripe.com;
img-src 'self' https://www.google-analytics.com;
font-src 'self' http://fonts.gstatic.com;
frame-src https://js.stripe.com;
script-src 'self' 'unsafe-inline' https://* https://js.stripe.com https://www.google-analytics.com;
connect-src 'self' https://api.stripe.com;">
<script src="https://js.stripe.com/v3/"></script>
-- Thanks to Patrick Lightbody for submitting this...
--
-- In your Quartz properties file, you'll need to set
-- org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
drop table if exists qrtz_fired_triggers;
DROP TABLE if exists QRTZ_PAUSED_TRIGGER_GRPS;
DROP TABLE if exists QRTZ_SCHEDULER_STATE;
DROP TABLE if exists QRTZ_LOCKS;
drop table if exists qrtz_simple_triggers;
@erichelgeson
erichelgeson / SameSiteCookieFilter.groovy
Last active July 18, 2017 17:01
Filter to add SameSite to SESSION cookies in grails/boot
package web.http
import groovy.transform.CompileStatic
import org.springframework.web.filter.GenericFilterBean
import javax.servlet.FilterChain
import javax.servlet.ServletException
import javax.servlet.ServletRequest
import javax.servlet.ServletResponse
import javax.servlet.http.Cookie
@erichelgeson
erichelgeson / Grails 3.3.3 Upgrade Notes.md
Last active June 6, 2018 21:33
Grails 3.3.x Upgrade Notes

3.3.3 - Current

  • 3.3.0- 07/26/2017
  • 3.3.0.RC1 - Current release 06/26/2017
  • 3.3.0.M2 - Current release 05/30/2017
  • 3.3.0.M1 - Released 05/09/2017

Please fork or leave a comment on this gist to add any other issues or notes you've encountered when upgrading to 3.3.

Documentation