Skip to content

Instantly share code, notes, and snippets.

View lquenti's full-sized avatar
🍒
Less is more

Lars Quentin lquenti

🍒
Less is more
View GitHub Profile
@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.
@lquenti
lquenti / audit.yml
Created August 11, 2023 12:52 — forked from LukeMathWalker/audit.yml
GitHub Actions - Rust setup
name: Security audit
on:
schedule:
- cron: '0 0 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
@lquenti
lquenti / main.c
Created November 22, 2022 07:58
test if FS is concurrent
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#include<stdio.h>
// 100mB
#define N 104857600
char *buf[N] = {0};
-- Installing: /usr/local/include/lexbor/core
-- Installing: /usr/local/include/lexbor/core/mem.h
-- Installing: /usr/local/include/lexbor/core/base.h
-- Installing: /usr/local/include/lexbor/core/shs.h
-- Installing: /usr/local/include/lexbor/core/array_obj.h
-- Installing: /usr/local/include/lexbor/core/avl.h
-- Installing: /usr/local/include/lexbor/core/sbst.h
-- Installing: /usr/local/include/lexbor/core/core.h
-- Installing: /usr/local/include/lexbor/core/types.h
-- Installing: /usr/local/include/lexbor/core/plog.h
@lquenti
lquenti / pistache installation directories
Created March 17, 2020 19:55
pistache installation directories
-- Install configuration: "Release"
-- Installing: /usr/local/include/pistache/version.h
-- Installing: /usr/local/lib64/pkgconfig/libpistache.pc
-- Installing: /usr/local/lib64/libpistache.so.0.0.002-git20200301
-- Installing: /usr/local/lib64/libpistache.so.0
-- Installing: /usr/local/lib64/libpistache.so
-- Up-to-date: /usr/local/include/pistache
-- Installing: /usr/local/include/pistache/cookie.h
-- Installing: /usr/local/include/pistache/client.h
-- Installing: /usr/local/include/pistache/tcp.h
@lquenti
lquenti / higher_kinded_types.hh
Created September 6, 2019 19:44
Example for higher kinded types in C++ with std::list and std::optional (Maybe)
#include<list>
#include<optional>
template<template <typename> class F>
struct Functor {
template<typename A, typename B>
static F<B> fmap(B *(f)(A), F<A> val);
// ($>)
template<typename A, typename B>