Skip to content

Instantly share code, notes, and snippets.

@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
Router1(config)#show running-config
^
% Invalid input detected at '^' marker.
Router1(config)#do show running-config
Building configuration...
Current configuration : 3971 bytes
@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
@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 / 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

created() {
window.addEventListener('message',(e) => {
if(e.data.eventName === 'UPDATE_STATE') {
console.log(e.data.params.duration)
}
});
}
<!DOCTYPE html>
<html>
<head>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script>
<script src="https://unpkg.com/@mapbox/mapbox-sdk/umd/mapbox-sdk.min.js"></script>
<script src="https://unpkg.com/@rtirl/api@latest/lib/index.min.js"></script>
<link
href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css"
rel="stylesheet"
/>
@juaoose
juaoose / index.html
Created September 2, 2021 00:51
Adding RealtimeIRL as a StreamElements overlay: Add a custom widget and add these to the widget in the html and js sections.
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin="anonymous" />
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin="anonymous"></script>
</head>