Skip to content

Instantly share code, notes, and snippets.

View mortezaadi's full-sized avatar

Morteza Adigozalpour mortezaadi

View GitHub Profile
@mortezaadi
mortezaadi / persistence.xml
Last active March 13, 2023 10:54
persistence xml configurations for major databases and jpa providers
<?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 -->
@mortezaadi
mortezaadi / certificate_add
Last active December 19, 2017 17:56
Add a certificate to JAVA truststore
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 / java8.properties
Created August 26, 2017 10:50
Maven java 8
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
git checkout develop
git pull
git checkout branch-123
git merge develop
@mortezaadi
mortezaadi / setup.md
Created January 11, 2024 19:27 — forked from jdesive/setup.md
Mount NFS share from synology NAS to Ubuntu

Mount Synology NFS share to Ubuntu 16.04

I have all hardware virtualized in ESXi 6.5...
Synology DSM 5.2-5644
Ubuntu 16.04

Start

On your fresh install on Ubuntu 16.04:

  1. Click the Connections icon on the top bar
  2. Goto Edit Connections