Skip to content

Instantly share code, notes, and snippets.

@anumber8
anumber8 / keycloak-defaults
Created Aug 16, 2019 — forked from markusleh/keycloak-defaults
Keycloak service script and default file for init.d
View keycloak-defaults
# General configuration for the init.d scripts,
# not necessarily for JBoss AS itself.
# default location: /etc/default/keycloak
## Location of JDK
# JAVA_HOME="/usr/lib/jvm/default-java"
## Location of WildFly
# JBOSS_HOME="/opt/keycloak"
View wildfly-datasource-and-xa-datasource.sh
# ADICIONANDO MODULOS
# MySQL
./jboss-cli.sh -c --command='module add --name=com.mysql --resources=mysql-connector-java.jar --dependencies=javax.api\,javax.transaction.api';
# ORACLE
./jboss-cli.sh -c --command='module add --name=com.oracle.ojdbc --resources=ojdbc-7.jar --dependencies=javax.api\,javax.transaction.api'
# ADICIONANDO DRIVERS
# MySQL
@anumber8
anumber8 / persistence.xml
Created Mar 30, 2019 — forked from mortezaadi/persistence.xml
persistence xml configurations for major databases and jpa providers
View persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<!-- derby -->
@anumber8
anumber8 / setup.sh
Created Jul 17, 2018 — forked from jkatz/setup.sh
Install PostgreSQL 10 & pgAdmin 4 with Docker
View setup.sh
#!/bin/bash
mkdir postgres
cd postgres
docker volume create --driver local --name=pgvolume
docker volume create --driver local --name=pga4volume
docker network create --driver bridge pgnetwork