Skip to content

Instantly share code, notes, and snippets.

@MapKey(name = "name")
@OneToMany(
cascade = ALL,
fetch = LAZY,
orphanRemoval = true,
targetEntity = EmailNotifierImpl.class
)
@Override
@SortComparator(NamedComparator.class)
public Set<EmailNotifier> getEmailNotifiers()
SELECT
*
FROM
ec_entity_change ec1
LEFT OUTER JOIN
ec_pooled_string bp1 ON ec1.before_path_id = bp1.id
LEFT OUTER JOIN
ec_pooled_string ap1 ON ec1.after_path_id = ap1.id
LEFT OUTER JOIN
ec_pooled_string mc1 ON ec1.modified_column_names_id = mc1.id
criteria.setComment("GetEntityChangeOperation");
criteria.setMaxResults(getChangeTrackingMaxRecords());
criteria.createAlias("changeHistoryRevision", "c");
criteria.add(sqlRestriction("id in (SELECT CASE WHEN ec1.descendant_change_id IS NULL THEN ec1.id ELSE ec2.id END id" +
" FROM\n" +
" ec_entity_change ec1\n" +
" LEFT JOIN\n" +
" ec_entity_change ec2 ON ec2.id = ec1.descendant_change_id)"));
@teosoft123
teosoft123 / gist:12e27e18c1208fcda1e7a5aedb1fba42
Created April 12, 2016 20:24 — forked from arguile-/gist:2510227
Basic Curl deploy file to Nexus
#!/bin/sh
SERVER="http://localhost:8081"
URL="$SERVER/nexus/service/local/artifact/maven/content"
REPO="sandbox"
USER="admin:admin123"
group=$1
artifact=$2
@teosoft123
teosoft123 / chips.yml
Created January 4, 2017 19:41 — forked from rdmarsh/chips.yml
Set CHIP up as an airplay server using ansible playbook
---
# Set CHIP up as an airplay server.
# Based on https://www.hackster.io/11798/c-h-i-p-play-speakers-7cebb9
# Note; you will still have to edit shairport-sync.conf to set the name
- name: configure chips for iot shairport use
hosts: shairport-chips
become_user: root
@teosoft123
teosoft123 / pge.py
Created December 5, 2017 06:39 — forked from stevedh/pge.py
PG&E Green button data downloader
##
## PG&E Green button data downloader
##
## @author Stephen Dawson-Haggerty <stevedh@eecs.berkeley.edu>
##
## Based on https://gist.github.com/3131346 and Andrew Krioukov's
## sMAPv1 PG&E driver for the old format of data.
##
import os
@teosoft123
teosoft123 / gist:d66adc6e0cb710da60ec1ae520aa751b
Created December 5, 2017 06:47 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
#!/bin/bash -e
ln -s /usr/lib/x86_64-linux-gnu/amdgpu-pro .
ln -s /etc/OpenCL .
tar -czvf libs.tar.gz amdgpu-pro/*
tar -czvf conf.tar.gz OpenCL/*
cat > .dockerignore << EOF
OpenCL

macOS: 10.13.3

WebDriver: 387.10.10.10.25.156

CUDA Toolkit: 9.1.128

cuDNN: 7

NVDAEGPUSupport: 6

@teosoft123
teosoft123 / ansible-summary.md
Created July 25, 2018 14:56 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of