Skip to content

Instantly share code, notes, and snippets.

View bdshadow's full-sized avatar

Dmitrii Bocharov bdshadow

View GitHub Profile
@mortezaadi
mortezaadi / persistence.xml
Last active July 23, 2024 00:45
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 -->
@damondouglas
damondouglas / random.dart
Last active May 20, 2021 08:13
Generate Random String based on length
import 'dart:math';
String _randomString(int length) {
var rand = new Random();
var codeUnits = new List.generate(
length,
(index){
return rand.nextInt(33)+89;
}
);
@nickboldt
nickboldt / devstudio-rpm-install-fedora.README
Last active January 14, 2017 10:01
How to install devstudio rpm on Fedora
1. Enable Red Hat VPN
2. AS ROOT, create a .repo file to pull dependencies from brew snapshots and released rel-eng repos:
sudo su
cat << EOF > /etc/yum.repos.d/rh-eclipse46-INTERNAL.repo
[rhscl-2.4-rh-eclipse46-rhel-7-build-latest]
name=rh-eclipse46-build
baseurl=http://download-node-02.eng.bos.redhat.com/brewroot/repos/rhscl-2.4-rh-eclipse46-rhel-7-build/latest/x86_64/
enabled=1