Skip to content

Instantly share code, notes, and snippets.

View andre-merzky's full-sized avatar

Andre Merzky andre-merzky

View GitHub Profile
#!/usr/bin/env python
from radical.entk import Pipeline, Stage, Task, AppManager
import os
host = os.environ.get('RMQ_HOSTNAME', 'localhost')
port = os.environ.get('RMQ_PORT', 5672)
def generate_pipeline():
{
"tasks": [{
"slot": "task",
"count": {
"per_slot": 1
},
"command": [
# "/home/merzky/radical/radical.pilot.3/examples/hello_rp.sh"]
"/bin/date"]
#!/usr/bin/env python
import os
import sys
import json
import radical.utils as ru
import subprocess as sp
@andre-merzky
andre-merzky / git-divergence
Created April 10, 2019 13:46
commit divergence between branches
#!/bin/bash
set -e
FORMAT='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
(
function branch() {
git branch 2>/dev/null | grep -e '^*' | tr -d '\* '
}
#!/bin/bash
# edited by andre@merzky.net
# original at https://gist.github.com/Mark-Booth/5058384
# forked from https://gist.github.com/lth2h/4177524 @ ae184f1 by mark.booth
# forked from https://gist.github.com/jehiah/1288596 @ e357c1e by lth2h
# ideas from https://github.com/kortina/bakpak/blob/master/bin/git-branches-vs-origin-master
# this prints out some branch status
# (similar to the '... ahead' info you get from git status)
apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/created-by: >
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicationController","namespace":"radical-nge","name":"radical-nge-3-1","uid":"4119cd1b-1cca-11e8-972b-005056b78d70","apiVersion":"v1","resourceVersion":"56031866"}}
kubernetes.io/limit-ranger: >-
LimitRanger plugin set: cpu, memory request for container radical-nge-3;
cpu, memory limit for container radical-nge-3
openshift.io/deployment-config.latest-version: '1'
module unload PrgEnv-pgi
module load PrgEnv-gnu
module load tmux
module load python
module load python_pip
module load python_virtualenv
module unload PrgEnv-pgi
module load PrgEnv-gnu
module load tmux
module load python
module load python_pip
module load python_virtualenv
#!/usr/bin/env python
import os
import sys
from pprint import pprint
import radical.utils as ru
import radical.pilot as rp
WALLTIME = 60 # In minutes