Skip to content

Instantly share code, notes, and snippets.

View lquenti's full-sized avatar
🔐
Locked in

Lars Quentin lquenti

🔐
Locked in
View GitHub Profile
@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.
@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 / 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 */