Skip to content

Instantly share code, notes, and snippets.

Avatar

Morteza Adigozalpour mortezaadi

View GitHub Profile
View Git merge develope to feature branch
git checkout develop
git pull
git checkout branch-123
git merge develop
@mortezaadi
mortezaadi / java8.properties
Created August 26, 2017 10:50
Maven java 8
View java8.properties
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
@mortezaadi
mortezaadi / certificate_add
Last active December 19, 2017 17:56
Add a certificate to JAVA truststore
View certificate_add
Windows
"%jreHome%\bin\keytool.exe" -keystore "%jreHome%\lib\security\cacerts" -importcert -file {filepath} -alias {sample} -storepass {pass} -noprompt
Linux:
**get the cert from site :
echo -n | openssl s_client -connect 185.79.62.45:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > examplecert.crt
@mortezaadi
mortezaadi / persistence.xml
Last active March 13, 2023 10:54
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 -->