Skip to content

Instantly share code, notes, and snippets.

View paraita's full-sized avatar
🏠
Working from home

Paraita Wohler paraita

🏠
Working from home
View GitHub Profile
@paraita
paraita / azure-bench-user-script.sh
Last active July 10, 2018 05:57
Azure user script for the 600 nodes bench
#!/bin/bash
set -x
set -e
set -o pipefail
umask 0022
JSONCONFIG=`base64 -d /var/lib/waagent/CustomData`
echo $JSONCONFIG
@paraita
paraita / azure-bench-deployment-script.sh
Last active July 12, 2018 06:08
Azure deployment script for the 600 nodes bench. Only works with the bench-machine online.
#!/bin/bash
set -x
SSH_USERNAME="hpcpeps"
SSH_PORT=22
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"
@paraita
paraita / azure-ss-validation
Created March 29, 2018 08:39
FOR VALIDATION WITH MICHAEL
#!/bin/bash
set -x
SSH_USERNAME="michael"
SSH_PORT=22224
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"
@paraita
paraita / pingpong.xml
Last active March 23, 2018 13:54
The ping pong workflow
<?xml version="1.0" encoding="UTF-8"?>
<job
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:proactive:jobdescriptor:3.10"
xsi:schemaLocation="urn:proactive:jobdescriptor:3.10 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.10/schedulerjob.xsd"
name="EscapeDeath" projectName="Epoch${COUNTER}"
priority="normal"
onTaskError="continueJobExecution"
maxNumberOfExecution="2"
>
@paraita
paraita / .tmux.conf
Last active February 12, 2019 21:01
My tmux conf file
run-shell "powerline-daemon -q"
source "/usr/local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf"
# Automatically set window title
#set-window-option -g automatic-rename on
set-option -g set-titles on
setw -g mode-keys vi
bind-key -T edit-mode-vi Up send-keys -X history-up
@paraita
paraita / db_tests.yml
Last active February 8, 2018 10:31
Description of the DB configuration tests for ProActive for TaaS
tests:
- name: "MySql"
schedulerConfFileName: "database.mysql.properties"
rmConfFileName: "database.mysql.properties"
JDBCDriverUrl: "http://central.maven.org/maven2/mysql/mysql-connector-java/6.0.6/mysql-connector-java-6.0.6.jar"
dockerfile: "mysql"
postRunScript: ""
- name: "Postgresql"
schedulerConfFileName: "database.postgresql.properties"
rmConfFileName: "database.postgresql.properties"
@paraita
paraita / scheduler_containering
Created February 8, 2018 09:19
Containerizing a ProActive release
# Don't forget to provide the (relative) path to the release folder to encapsulate
FROM openjdk:9
MAINTAINER WOHLER Paraita <paraita.wohler@activeeon.com>
ARG schedulerDirPath=schedulerRelease
ENV PA_HOME /data/scheduling
RUN mkdir -p /data/tmp && mkdir -p $PA_HOME
COPY $schedulerDirPath $PA_HOME
WORKDIR $PA_HOME
@paraita
paraita / squid.ssl.conf
Last active November 10, 2021 16:40
Squid 3.5.0.4 http+https basic auth + ssl bump
# #### pre-requisites ####
# I use the following Dockerfile for Squid:
# https://hub.docker.com/r/jamesyale/squid-sslbump/ to deploy the proxy
# Replace the existing /etc/squid/squid.ssl.conf with this file
# Create the users credentials with htpasswd (yum install httpd-tools)
# htpasswd [-c] /etc/squid/squidusers username
# -с is to create a new file, not to change the existing file
# Use the following command to test the user/pass:
# /usr/lib64/squid3/basic_ncsa_auth /etc/squid/squidusers
# provide <user> <password> at the prompt, for example:
@paraita
paraita / squid.conf
Last active January 11, 2019 17:24
Minimal squid config for http and https basic auth (considering minimum2scp/squid's dockerfile)
# #### pre-requisites ####
# I use the following Dockerfile for Squid:
# https://hub.docker.com/r/minimum2scp/squid/~/dockerfile/ to deploy the proxy
# Replace the existing /etc/squid/squid.conf with this file
# Create the users credentials with htpasswd (apt-get install apache2-utils)
# htpasswd [-c] /etc/squid/squidusers username
# -с is to create a new file, not to change the existing file
# Use the following command to test the user/pass:
# /usr/lib/squid3/basic_ncsa_auth /etc/squid/squidusers
# provide <user> <password> at the prompt, for example:
@paraita
paraita / azure-ss-paraita
Last active July 9, 2018 09:22
Test Azure ScaleSet Azure only (avec la machine de test Azure POC In The Box)
#!/bin/bash
set -x
SSH_USERNAME="paraita"
SSH_PORT=22222
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"