Skip to content

Instantly share code, notes, and snippets.

View c4software's full-sized avatar
🎯
Focusing

Brosseau Valentin c4software

🎯
Focusing
View GitHub Profile
@c4software
c4software / README.md
Created September 28, 2026 13:46
gufo#272: compute queue census and throughput on v0.1.1 (Strix Halo), raw data

gufo#272: compute queue census and throughput, v0.1.1

Raw data for gufo-org/gufo#272, measured 2026-09-28 on Strix Halo 128 GB (gfx1151), gufo 0.1.1 (b0f8673), Flash-Next UD-Q4_K_XL text server resident with MTP, --sessions 2, behind llama-swap. Audio servers started by hand in the same container (docker exec ... gufo serve tts|asr --port 5999).

  • files-272.sh: the script (bash, run on the host).
  • summary.log: its output.
  • repos.log: 10 idle samples per state (1 s apart): per gufo serve process kind:pid=c/s,
@c4software
c4software / _setup-llm.sh
Last active August 15, 2026 19:49
Remplacé par https://github.com/c4software/llmsetup (llama server multi models setup, Ryzen Strix Halo 128Gb)
#!/usr/bin/env bash
# =============================================================================
# Ce gist est remplacé par un dépôt : https://github.com/c4software/llmsetup
#
# Le script monolithique setup-llm.sh a été découpé en modules (lib/, py/,
# prompts/), testé et documenté. Toutes les évolutions se font là-bas :
#
# git clone git@github.com:c4software/llmsetup.git
# cd llmsetup && ./setup-llm.sh --setup
#
@c4software
c4software / ICS Sum Calculator.md
Last active November 16, 2024 22:21
ICS Sum calculator

ICS Calendar Time Analyzer

Un script Python pour analyser les fichiers de calendrier ICS et calculer le temps passé sur des événements spécifiques, avec support des événements récurrents.

🌟 Fonctionnalités

  • Analyse des fichiers ICS depuis une URL
  • Calcul du temps passé par mois et par année
  • Conversion automatique des heures en jours (base : 8h/jour)
  • Support des événements récurrents :
@c4software
c4software / sample.sh
Created February 17, 2024 20:36
wget speed test
# 500 Mo
wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
# 10Go
wget -O /dev/null http://test-debit.free.fr/10485760.rnd
@c4software
c4software / Dockerfile
Created March 30, 2023 15:13 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@c4software
c4software / temperature_ressentie.yaml
Created November 1, 2022 10:54
Home Assistant - Calcul de la température ressentie
- platform: template
sensors:
salon_temperature_ressentie:
friendly_name: 'Ressenti T° Salon'
value_template: >-
{% set T = ((states.sensor.netatmo_maison_salon_temperature.state|float)*1.8)+32 %}
{% set RH = states.sensor.netatmo_maison_salon_humidity.state|float %}
{% set STEADMAN_HI = 0.5 * (T + 61.0 + ((T-68.0)*1.2) + (RH*0.094)) %}
{% if STEADMAN_HI >= 80 %}

Proxmox GPU Passthrough

Config :

  • Motherboard : Asrock x300
  • CPU : AMD Ryzen 5 PRO 4650G with Radeon Graphics
  • GPU : AMD Ryzen 5 PRO 4650G with Radeon Graphics
  • Ram : DDR4 2133 MHz

Setting it all up

Update packages

@c4software
c4software / README.md
Last active May 14, 2022 20:06
[Archlinux] XRDP & Gnome Keyring Unlock (May 2022 temporary fix)

Hi 👋,

I have a full headless VM for remote machine, since few weeks Google Chrome became really slow to start (2min, I smell a timeout)… All the problems are related to Gnome-Keyring which seems not to unlock.

Step 1 /etc/pam.d/system-auth

Comment every lines with pam_systemd_home.so in the /etc/pam.d/system-auth to disable it.

Step 2 /etc/pam.d/xrdp-sesman

Original: https://forum.duolingo.com/comment/9139466
Duolingo announced that it will be shutting down its forums on 2022-03-22. There is a chance it may keep them in read-only mode, but no guarantee. Therefore this is a copy of the incredibly useful Esperanto Megapost from Duolingo Esperantist amuzulo.
@c4software
c4software / file-download.js
Created September 8, 2020 07:13
Produce & Download a JSON object directly from the browser
const saveAsJsonLocally = (obj, filename) => {
const data = JSON.stringify(obj, null, 2);
const blob = new Blob([data], {type: 'text/plain'});
const e = document.createEvent('MouseEvents');
const a = document.createElement('a');
a.download = filename;
a.href = window.URL.createObjectURL(blob);
a.dataset.downloadurl = ['text/json', a.download, a.href].join(':');