#GIT
- Modificado (modified);
 - Preparado (staged/index)
 - Consolidado (comitted);
 
I came across HikariCP and I was amazed by the benchmarks and I wanted to try it instead of my default choice C3P0 and to my surprise I struggled to get the configurations right probably because the configurations differ based on what combination of tech stack you are using.
I have setup Spring Boot project with JPA, Web, Security starters (Using [Spring Initializer][1]) to use PostgreSQL as a database with HikariCP as connection pooling. 
I have used Gradle as build tool and I would like to share what worked for me for the following assumptions:
This gist is related to SO post https://stackoverflow.com/questions/26490967/how-do-i-configure-hikaricp-in-my-spring-boot-app-in-my-application-properties-f
| { | |
| "api-cors-header": "", | |
| "authorization-plugins": [], | |
| "bip": "", | |
| "bridge": "", | |
| "cgroup-parent": "", | |
| "cluster-store": "", | |
| "cluster-store-opts": {}, | |
| "cluster-advertise": "", | |
| "debug": true, | 
| #!/usr/bin/env groovy | |
| /** | |
| * Demonstrates how to use Grape to grab dependencies for | |
| * Groovy scripts. | |
| * | |
| * Grape stands for the Groovy Adaptable (Advanced) Packaging Engine, and it is a part of the Groovy installation. | |
| * Grape helps you download and cache external dependencies from within your script with a set of simple annotations. | |
| * | |
| * If, in your script, you require an external dependency, that you know is available in a public repository as Maven Central Repository, | 
| <ivysettings> | |
| <settings defaultResolver="downloadGrapes"/> | |
| <resolvers> | |
| <chain name="downloadGrapes"> | |
| <filesystem name="cachedGrapes"> | |
| <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/> | |
| <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> | |
| </filesystem> | |
| <!-- todo add 'endorsed groovy extensions' resolver here --> | |
| <ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true"/> | 
| <?xml version="1.0"?> | |
| <ivysettings> | |
| <settings defaultResolver="downloadGrapes"/> | |
| <resolvers> | |
| <chain name="downloadGrapes"> | |
| <!-- todo add 'endorsed groovy extensions' resolver here --> | |
| <ibiblio name="local" root="file:${user.home}/.m2/repository/" m2compatible="true"/> | |
| <filesystem name="cachedGrapes"> | |
| <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/> | |
| <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> | 
| function toString(oj) { | |
| if (oj == null) return 'null'; | |
| if (Java.isJavaObject(oj)==false) return 'Error: not a Java Object'; | |
| try { | |
| java.lang.Class.forName('org.apache.commons.lang3.builder.ReflectionToStringBuilder'); | |
| } catch (e) { | |
| var url = new java.net.URL('http://central.maven.org/maven2/org/apache/commons/commons-lang3/3.0/commons-lang3-3.0.jar'); | |
| var ucl = java.lang.Class.forName('java.net.URLClassLoader'); | |
| var addURL = ucl.getDeclaredMethod("addURL", [ url.getClass() ]); | |
| addURL.setAccessible(true); | 
| #!/usr/bin/env bash | |
| # Secure workaround for https://issues.sonatype.org/browse/MVNCENTRAL-1369 | |
| # Navigate to the root of your Spring Boot project where a Maven wrapper is present and run this script | |
| cd .mvn/wrapper | |
| wget https://gist.githubusercontent.com/kbastani/d4b4c92969ec5a22681bb3daa4a80343/raw/f166086ef051369383b02dfb74317cd07b6f2c6e/settings.xml | |
| cd ../../ | |
| ./mvnw clean install -s .mvn/wrapper/settings.xml | 
| import sys | |
| import subprocess | |
| import re | |
| def convert_to(folder, source, timeout=None): | |
| args = [libreoffice_exec(), '--headless', '--convert-to', 'pdf', '--outdir', folder, source] | |
| process = subprocess.run(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=timeout) | |
| filename = re.search('-> (.*?) using filter', process.stdout.decode()) |