Skip to content

Instantly share code, notes, and snippets.

@juaoose
juaoose / README.md
Created February 28, 2018 21:00 — forked from rhamedy/README.md
Configure HikariCP with Spring Boot JPA Hibernate and PostgreSQL as a database

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:

  1. Spring Boot Starter JPA (Web & Security - optional)
  2. Gradle build tool
  3. PostgreSQL running and setup with a database (i.e. schema, user, db)

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

@juaoose
juaoose / Redis.txt
Created February 24, 2018 00:56
From someone elses repo
# *****************************************************************************
# BASICS
# *****************************************************************************
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# *****************************************************************************
@juaoose
juaoose / M2 IBM JDK
Last active June 2, 2018 16:01
How to use Maven with IBMs JDK when you get ClassNotFound for SSLSocket...
C:\IBM\WebSphere\AppServer\java\jre\lib\security
Edit java.security
You can comment these to download and then set them back
#ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
#ssl.ServerSocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLServerSocketFactory
Router1(config)#show running-config
^
% Invalid input detected at '^' marker.
Router1(config)#do show running-config
Building configuration...
Current configuration : 3971 bytes
@juaoose
juaoose / Router_1.sh
Last active April 2, 2017 21:43
NGN: Redes de próxima generación. G01
##Router 1
show ip interface brief
interface G0/0
no shutdown
interface G0/1.5
encapsulation dot1q 5
ip address 192.10.20.1 255.255.255.0
exit