Skip to content

Instantly share code, notes, and snippets.

View markito's full-sized avatar
🎯

William Markito Oliveira markito

🎯
View GitHub Profile
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 jps-filter-grep-expr"
exit 1
fi
jps_filter=$1
# extract the PID of the java process
projects = {'ProjectA' : {'deps' : ['ProjectB']},
'ProjectB' : {'deps' : None},
'ProjectC' : {'deps' : ['ProjectA']}}
cont = 0
def deploy(name, desc):
"""
Detects the order of deploy for projects in a dict.
Each dic entry is the name of Projet : {desc}, where desc is a dict containing: