Skip to content

Instantly share code, notes, and snippets.

View xaratustrah's full-sized avatar
🎲
What were the chances?

xaratustrah

🎲
What were the chances?
View GitHub Profile
@xaratustrah
xaratustrah / cst_debian_installation.md
Last active April 28, 2026 08:08
cst_debian_installation.md

CST on Ubuntu

Installing 3DS CST Microwave Studio Suite Distributed Computing Node on Ubunntu

Tested on: Ubuntu 20.04.2 LTS nvidia version 470

nvidia + cuda installation

@xaratustrah
xaratustrah / notentabelle.md
Created December 8, 2025 20:21
Notentabelle
#!/usr/bin/env python3
#
# Notentabelle
# xaratustra
# 2025

import numpy as np
import sys
@xaratustrah
xaratustrah / analysistools.md
Last active February 18, 2025 08:51
Analysis tool chain

Installing common analysis tools for experiments

Installation

Installing miniforge

please download the latest MINIFORGE from https://github.com/conda-forge/miniforge/releases. The advantage of MINIFORGE is that it by default points to conda-forge channels. The miniforge installation also brings with itself the executable apps like mamba and conda which are compatible.

Pleae choose the proper executable for your system / architecture. i.e. Linux or OSX.

SLURM arrays with Python and Singularity containers

Preparation

Making a Singularity SIF image

Sometimes it is easier to start off a docker image that contains all the things you need. You can use it at the beginning, then add all other stuff you need, for example:

bootstrap: docker

Conda and Docker

Conda and Docker are essential for use in scientific environments. Both are open source software, but they include some optional add-ons that require licensing / payment, especially for large institutions. Nevertheless, it is easy to install and use all the features, as the optional tools are usually for convenience and support, but are not needed for actual operation.

Conda

Linux / OSX / Win

Conda can be easily installed using the newest Miniforge. It is a clean local installation and will not pollute your system and does not need additional rights. It sets the default channels to the non-commercial / open source ones automatically.

Using 'conda-forge' channel only

Date: 2023-02-21

Problem

For some reason, we can't use anaconda or miniconda in a normal way anymore, otherwise our purse will get hurt. Normally, we download python packages from anaconda's defaults channel, which is maintained by anaconda's official team. Now we need to stop downloading from the "defaults" channel. Instead, we have to turn to "conda-forge" channel.

A basic introduction to 'micromamba'

Date: 2023-03-27

Introduction

micromamba is a lightweight-version of mamba, which is written purely in C++.

micromamba will maintain a individual folder under home directory: ~/micromamba/. All its created environments & downloaded packages are stored there.

@xaratustrah
xaratustrah / ssh_friends.md
Last active November 20, 2023 12:30
ssh_friends.md

ssh and friends

I use SSH as a powerful tool that it deserves its own gist.

SSH proxy SOCKS

Create a dynamic port:

ssh -fNCq -D 8123 -p 22 username@intermediate.maschine
@xaratustrah
xaratustrah / flask_nginx_gunicorn.md
Last active February 24, 2023 15:39
flask_nginx_gunicorn.md

Python Flask + nginx + gunicorn

Setting up a python flask web application using nginx, gunicorn and systemd on a Rasperry Pi

In the following, we assume a working Flask application with the name of SCRIPT_NAME. First we need to install a couple of things:

sudo apt-get update && sudo apt-get upgrade

Installing nginx will fail if apache is running. If your installation breaks half ways, then remove the fragments, stop apache (and I actually suggest removing it in case not needed) and then install nginx again:

sudo apt-get remove nginx* --purge

sudo /etc/init.d/apache2 stop

@xaratustrah
xaratustrah / shell_scripts_and_one_liners.md
Last active January 26, 2023 10:03
shell_scripts_and_one_liners.md

Shell scripts and one liners

Snippets, tips and tricks in no particular order. FOR ADVANCED USERS ONLY. Some of these one liners may be dangerous since they might delete files in loops. Please pay attention and make backups. :-)

Extracting a column from a text file

Extract the 10th column while skipping the first line:

awk -F ' ' 'NR!=1{print $10}' filename.txt