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 | |
mkdir /tmp/web | |
cd /tmp/web | |
echo "Hello from $HOSTNAME" > index.html | |
python3 -m http.server 8080 | |
#curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | jq |
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 | |
echo SFTP |
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
echo FTP |
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
log4j.rootLogger=INFO, CONSOLE | |
log4j.logger.org.ow2.proactive.resourcemanager=INFO, CONSOLE | |
log4j.logger.org.ow2.proactive.resourcemanager.node.jmx.SigarExposer=INFO, NODE | |
log4j.additivity.org.ow2.proactive.resourcemanager.node.jmx.SigarExposer=false | |
log4j.logger.org.ow2.proactive.resourcemanager.utils.BroadcastDiscoveryClient=INFO, NODE | |
log4j.additivity.org.ow2.proactive.resourcemanager.utils.BroadcastDiscoveryClient=false |
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
print(java.lang.System.getProperty('pas.task.name')) | |
print("Hello World in JS!") |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<job | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="urn:proactive:jobdescriptor:3.8" | |
xsi:schemaLocation="urn:proactive:jobdescriptor:3.8 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.8/schedulerjob.xsd" | |
name="EP" | |
priority="normal" | |
onTaskError="cancelJob" | |
maxNumberOfExecution="1" | |
> |
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 | |
# Give the ZIP release as argument | |
mkdir -p /opt/proactive | |
unzip $1 -d /opt/proactive | |
ln -s /opt/proactive/${1%.zip} /opt/proactive/server | |
sudo chown -R activeeon:activeeon /opt/proactive | |
# Generate proactive-server service description |
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 | |
# Prepare variables | |
HOST=$(grep host /etc/local/proactive | cut -f2) | |
USERNAME=$(grep username /etc/local/proactive | cut -f2) | |
USERNAME=${USERNAME:-admin} | |
PASSWORD=$(grep password /etc/local/proactive | cut -f2) | |
apt-get update | |
apt-get install -y curl |
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 | |
set -x | |
function debug { | |
DEBUGCONTENT=`echo $1 | base64 -w 0` | |
DEBUGMESSAGE="<QueueMessage><MessageText>$DEBUGCONTENT</MessageText></QueueMessage>" | |
curl -X POST -d "$DEBUGMESSAGE" "https://$STORAGEACCOUNT.queue.core.windows.net/debug/messages?$SASKEY" | |
} |
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
private String submitToScheduler(File jobFile) throws AuthenticationException, IOException { | |
// Submit XML Job to the Scheduler | |
String sessid = connectToScheduler(schedulerUrl, schedulerUsername, schedulerPassword); | |
String endpoint = schedulerUrl + "/scheduler/submit"; | |
HttpPost post = new HttpPost(endpoint); | |
post.addHeader("sessionid", sessid); | |
MultipartEntity me = new MultipartEntity(); | |
me.addPart("descriptor", new FileBody(jobFile, "application/xml")); | |
post.setEntity(me); | |
HttpResponse response = httpClient.execute(post); |