This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LoadAllReachableCmsesCommand implements Callable<Set<IContentManagementSystem>> { | |
@Override | |
public Set<IContentManagementSystem> call() throws Exception { | |
Set<IContentManagementSystem> cmses = new HashSet<>(); | |
for (IProcessModelVersion pmv : allReachablePmvs()) { | |
IContentManagementSystem cms = Ivy.cms() | |
.getContentManagement().findCms(pmv); | |
if (cms != null) { | |
cmses.add(cms); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import ch.ivyteam.ivy.process.eventstart.*; | |
import ch.ivyteam.ivy.request.RequestException; | |
import ch.soreco.alag.exception.OperationFailedException; | |
/** | |
* The {@code RunOnceOnServerStartEventBean} is an Ivy start event bean | |
* {@linkplain IProcessStartEventBean}. It's is designed to start a process only | |
* <strong>ONCE</strong> on the server startup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use axonivysystemdatabase; | |
-- state = 1 means RUNNING | |
declare @pmv_id int | |
set @pmv_id = 123456 -- set your PMV's Id here | |
select cx.*, te.processmodelversionid from | |
(select c.*, ts.taskelementid as 'taskelementid' from iwa_case c left join iwa_taskstart ts on c.taskstartid = ts.taskstartid) cx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.Optional; | |
import org.eclipse.core.resources.IFolder; | |
import ch.ivyteam.ivy.environment.Ivy; | |
import ch.ivyteam.ivy.security.internal.SecurityManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix ` | |
bind ` send-prefix | |
# PREFIX \: Create a new vertial pane. | |
bind \ split-window -h | |
# PREFIX -: Create a new horizontal pane. | |
bind - split-window -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.util.function.*; | |
import java.util.stream.*; | |
/** | |
* This class is a test to see if we can use `Stream` | |
* to walk/explore a tree-like data structure. | |
*/ | |
public class StreamingWithRecursion { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.model.* | |
import hudson.security.* | |
import hudson.tasks.Mailer | |
import com.michelin.cio.hudson.plugins.rolestrategy.* | |
/* | |
* This snippet is inspired from a StackOverflow question and answer. | |
* https://stackoverflow.com/questions/17716242/creating-user-in-jenkins-via-api | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file is solely for being Gist's name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# I went through some hard time editing the ~/.gitconfig and finally gave up because | |
# escaping the single-quotes was too hard. | |
# Finally, I left the job to Bash and Git CLI. | |
# Save for future use. | |
# CHANGELOG | |
# v2 | |
# - Change the way to process the alias: replace the first `=` with a `#`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# A convenient script to install Zulu IcedTea Web Portable version 1.8.3 | |
# on macOS. | |
# It can run with most of the JRE/JDK 8 Distribution like Oracle JDK | |
# or AdoptOpenJDK. | |
set -e |
OlderNewer