Skip to content

Instantly share code, notes, and snippets.

View ramanqul's full-sized avatar

Raman Buzaubakov ramanqul

View GitHub Profile
@bastman
bastman / application.yml
Created February 11, 2018 08:06
spring-boot jpa hibernate postgres fix: LobCreatorBuilderImpl : HHH000424: Disabling contextual LOB creation as createClob() method threw error
# LobCreatorBuilderImpl : HHH000424: Disabling contextual LOB creation as createClob() method threw error
# see: http://vkuzel.blogspot.de/2016/03/spring-boot-jpa-hibernate-atomikos.html
# Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults: false
# Because detection is disabled you have to set correct dialect by hand.
spring.jpa.database-platform: org.hibernate.dialect.PostgreSQL9Dialect
anonymous
anonymous / nginx.conf
Created December 9, 2016 16:27
if ($request_method = OPTIONS) {
# Handle OPTIONS method
add_header Content-Length 0;
add_header Content-Type text/plain;
return 204;
}
# Headers get added no matter the request method
more_set_headers "Access-Control-Allow-Credentials: true";
more_set_headers "Access-Control-Allow-Methods: GET, POST, PUT, DELETE";
@leonardofed
leonardofed / README.md
Last active May 23, 2024 10:29
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@todgru
todgru / vim_info.md
Last active January 22, 2019 01:23
vim nerdtree copy paste search and replace

#vim

Editing

  • shift V select line, up or down select lines
  • shift > shift select block or line out
  • shift < shift select block or line in
  • d to delete highlighted text and copy to cliboard
  • D delete everything after cursor to end of line
  • y to copy (yank)
@curioustechizen
curioustechizen / LocalBroadcastReceiver.java
Created May 24, 2012 10:54
Adding ordered broadcast capability to LocalBroadcastManager from Android support library.
package in.curtech.android.common;
import android.content.BroadcastReceiver;
/**
* Extension of {@code BroadcastReceiver} meant to be used in conjunction with
* {@link OrderEnabledLocalBroadcastManager}
*
* @author Kiran Rao
*/