Skip to content

Instantly share code, notes, and snippets.

@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

package com.grails3book.stripe
import com.agileorbit.gambda.ApiGatewayHandler
import com.agileorbit.gambda.ApiGatewayRequest
import com.agileorbit.gambda.ApiGatewayProxyResponse
import com.amazonaws.services.lambda.runtime.Context
import com.stripe.Stripe
import com.stripe.model.Charge
import groovy.transform.CompileStatic