Skip to content

Instantly share code, notes, and snippets.


Cedric L CedricL46

View GitHub Profile
View soa_bpel_partitionning_script_example.sql
-- MIT License
-- Author Cedric Leruth
--Permission is hereby granted, free of charge, to any person obtaining a copy
--of this software and associated documentation files (the "Software"), to deal
--in the Software without restriction, including without limitation the rights
--to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
--copies of the Software, and to permit persons to whom the Software is
--furnished to do so, subject to the following conditions:
View bpel_monitoring.sql
--Key BPEL Indicator (usefull to build a monitoring system with EM or Kibana, etc)
-- Replace soa_user with your own Oracle SOA Database Schema user
--Indentify bpel errors in the last 10 minutes
select ci.title, ci.ecid, cui.composite_name, cui.composite_revision, ci.created_time,
(SELECT count(1) FROM soa_user.REFERENCE_INSTANCE ri WHERE ri.ecid = ci.ecid and error_message is not null) +
(select count(1) from soa_user.bpel_faults_vw bf where bf.ecid = ci.ecid) as nbfaults
from soa_user.composite_instance ci
inner join soa_user.cube_instance cui on cui.ecid = ci.ecid
where (select count(1) from soa_user.bpel_faults_vw bf where bf.ecid = ci.ecid) !=0
and ci.created_time >= sysdate - 10/(24*60);
View soa_bpel_GlobalFaultPolicy.xml
<?xml version="1.0" encoding="UTF-8"?>
<faultPolicyBindings version="2.0.2"
<composite faultPolicy="Faults_Policy"/>
View azure-Simple-Maven-build-pipelines-example.yml
# Maven package Java
# Build your Java project
# Add steps that analyze code, save build artifacts, deploy, and more:
- master
# Agent VM image name
View DisplayDifferentMenuIfUserIsLoggedIn_Wordpress.php
//Add the following in your custom plugin code
//Note: if you prefer to add it in the function.php remove the array : add_filter('wp_nav_menu_args', 'display_custom_menu');
add_filter('wp_nav_menu_args', array($this,'display_custom_menu'));
* Filter menu to display
* logged-in menu if user is logged in
* logged-in-admin menu if user is logged in and is an Administrator
* logged-out menu if visitor isn't logged in
#Your First need to install wordpress cli as describe :
#Try running
wp help
#and if you get an error run the following :
curl -O
php wp-cli.phar --info
#Should display system informations
#If there is no errors make it executable and move it to path :
chmod +x wp-cli.phar
View UploadLocalFolderContentToAwsS3.php
// Include AWS php sdk that you can download here :
require 'aws/aws-autoloader.php';
use Aws\S3\S3Client;
use Aws\S3\Exception\S3Exception;
// Initialize your S3 connection.
// To generate your YOUR_IAM_USER_KEY and YOUR_IAM_USER_SECRET create and Aws IAM user with the S3FullAccess Role
// to do so follow :
//There is multiple way to programmatically set a value of a view attribute in Oracle ADF :
// 1. The JSF way using the highly recommended library function :
* Method for setting a new object into a JSF managed bean
* Note: will fail silently if the supplied object does
* not match the type of the managed bean.
* @param expression EL expression
* @param newValue new value to set
public static ViewObjectImpl getViewObjectFromIterator(String nomIterator) {
ViewObjectImpl returnVO = null;
DCBindingContainer dcb = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
if (dcb != null) {
DCIteratorBinding iter = dcb.findIteratorBinding(nomIterator);
if (iter != null) {
returnVO = (ViewObjectImpl)iter.getViewObject();
return returnVO;
View ConfigureJdeveloperToTrustAnSSLCertificate.bash
# This kind of error when calling an https url in Jdeveloper
# means that you need to add it's SSL certificate to Jdeveloper trusted keystore :
# PKIX path building
# unable to find validcertification path to requested target
# To fix this :
# 1) Download the SSL certificate from the https url.
# 1.a) go to the url
# 1.b) click on the padlock next to the url in your web browser
# 1.c) click the certificate button