Skip to content

Instantly share code, notes, and snippets.

@arm2arm
arm2arm / myvalues.yaml
Created September 9, 2022 12:53
reana helm options
# Accessing the cluster from outside world
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: traefik
traefik.frontend.entryPoints: "http,https"
ingress.kubernetes.io/ssl-redirect: "false"
tls:
self_signed_cert: true
# Import required libraries
import tensorflow as tf
from tensorflow.keras.datasets import cifar10
from sklearn.model_selection import train_test_split
import xgboost as xgb
# Import required libraries
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# Load MNIST dataset
@arm2arm
arm2arm / meshcat_webxr.md
Created October 1, 2023 13:57
Switch meshcat VR AR branch
git clone https://github.com/meshcat-dev/meshcat.git
cd meshcat
git fetch origin pull/154/head:pull_154
git switch pull_154
@arm2arm
arm2arm / dpk 8.0.4.txt
Created October 15, 2023 18:32
pve versions: 2023
ii ceph-common 17.2.6-pve1+3 amd64 common utilities to mount and interact with a ceph storage cluster
ii ceph-fuse 17.2.6-pve1+3 amd64 FUSE-based client for the Ceph distributed file system
ii corosync 3.1.7-pve3 amd64 cluster engine daemon and utilities
ii libcephfs2 17.2.6-pve1+3 amd64 Ceph distributed file system client library
ii libcfg7:amd64 3.1.7-pve3 amd64 cluster engine CFG library
ii libcmap4:amd64 3.1.7-pve3 amd64 cluster engine CMAP library
ii libcorosync-common4:amd64 3.1.7-pve3 amd64 cluster engine common library
ii libcpg4:amd64 3.1.7-pve3 amd64 cluster engine CP
@arm2arm
arm2arm / gist:f8afe31e66db1c6b2e8230e631149a8d
Last active September 17, 2025 09:37
Reana +Snakemake + c4p tricks

Q: can i login to node? A: Just login to the c4p login node and run "condor_ssh_to_job jobid".

show me an example for snakemake with memory limits: A:

 rule prepare:
    container:
 "astro-ml:latest"
@arm2arm
arm2arm / Q3_K_M
Created February 24, 2026 17:52
LLM Hardware benchmark
based on this example for REANA serial workflow, make a workflow ploting sin plot in green, show only python and reana.yaml files no additional info inputs: files: - analyze.py - Poster-HUGE-2025.ipynb workflow: type: serial specification: steps: - name: getdata environment: 'gitlab-p4n.aip.de:5005/compute4punch/container-stacks/astro-ml:latest' commands: - curl -sO https://s3.data.aip.de:9000/pmviewer2023/particles.cache.npy - name: analysis environment: 'gitlab-p4n.aip.de:5005/compute4punch/container-stacks/astro-ml:latest' commands: - papermill Poster-HUGE-2025.ipynb Poster-HUGE-2025-output.ipynb - unlink particles.cache.npy kubernetes_memory_limit: '64Gi'
```yaml
version: 0.2.0
inputs:
files:
- analyze.py
workflow:
type: serial
specification: