Skip to content

Instantly share code, notes, and snippets.

View lquenti's full-sized avatar
🔐
Locked in

Lars Quentin lquenti

🔐
Locked in
  • @gwdg HPC dept
  • 15:35 (UTC +02:00)
View GitHub Profile
@lquenti
lquenti / build_singularity.sh
Created October 2, 2025 11:06
Building Singularity from Docker
#!/bin/bash
# 2023 Lars Quentin MIT
# Call it with
# ./scriptname ./path/to/your/Dockerfile
#
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
@lquenti
lquenti / GitIntro.md
Last active September 23, 2025 11:23
Very Practical Introduction to Git

Very Practical Introduction to Git

  • Hands on, thus no slides
  • This should bring you through your first 1-2 years definitely

Structure

  • The absolute minimum of theory
  • Get started FAST (alone):
    1. New Project
    2. Existing Project
  • Work with others
@lquenti
lquenti / double_buffer.c
Last active January 9, 2025 07:25
A fast multi processing (assuming no knowledge about fork!) double buffer, flushing back buffer to disk
#include<stdatomic.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<fcntl.h>
#include<pthread.h>
#include<unistd.h>
/* Lars Quentin 2025, licensed as WTFPL */
@lquenti
lquenti / Main.hs
Created October 12, 2023 09:03
Using statistics.types
module Main where
import Statistics.Types
import Data.Maybe (fromJust)
-----------------------
-- Confidence levels --
-----------------------
@lquenti
lquenti / TSMAppDataException.ps1
Created September 28, 2023 10:28
Exclude AppData from TSM tivoli backups using powershell
<#
A script to write an exclude file for all users AppData for TSM Tivoli.
Copyright Lars Quentin 2023, licsensed as CC0 (Public Domain)
#>
<#
Configuration Variables:
- BASE_PATH:
Where the user folders are.