Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@arakashic
arakashic / patch
Last active April 29, 2025 19:59
qzfs-fix
From d6f5b65362a5d2471c8b8fb7509fda85e43d20dd Mon Sep 17 00:00:00 2001
From: Yanfei Guo <[email protected]>
Date: Fri, 18 Apr 2025 19:48:19 +0000
Subject: [PATCH] qat: wait for in-flight req to complete before remove session
reqs in session may be still in-flight after callback returns.
This results in session remove fail with message "There are %lu
requests pending". Adding a small loop to wait for the completion
of in-flight requests.
---
@fxkamd
fxkamd / TinyGrad-notes.md
Last active April 24, 2025 04:56
Observations about HSA and KFD backends in TinyGrad

This is Felix Kuehling, long time KFD driver architect. I started looking into the TinyGrad source code yesterday, focusing on ops_kfd.py, ops_hsa.py and driver/hsa.py, to understand how TinyGrad talks to our HW and help with the ongoing debugging effort from the top down. This analysis is based on this commit: https://github.com/tinygrad/tinygrad/tree/3de855ea50d72238deac14fc05cda2a611497778

I'm intrigued by the use of Python for low-level programming. I think I can learn something from your use of ctypes and clang2py for fast prototyping and test development. I want to share some observations based on my initial review.

ops_kfd looks pretty new, and I see many problems with it based on my long experience working on KFD. I think it's interesting, but probably not relevant for the most pressing problems at hand, so I'll cover that last.

ops_hsa uses ROCr APIs to manage GPU memory, create a user mode AQL queue for GPU kernel dispatch, async SDMA copies, and signal-based synchronization with barrier packets

@m3rlinux
m3rlinux / omd-tuning.sh
Last active March 6, 2024 11:26 — forked from FlorianHeigl/omd-tuning.sh
omd tuning script
#!/usr/bin/env bash
# License: BSD
# Author: Florian Heigl (@FlorianHeigl)
# Contributors: Davide Gibilisco (@m3rlinux)
set -eu
# Function to convert bytes to human-readable format
human_readable() {
@Yvand
Yvand / set-proxy.ps1
Created December 21, 2023 13:28
Sets the proxy on a Windows machine
param(
[string]$proxyIp = '10.1.5.4',
[string]$proxyHttpPort = '8080',
[string]$proxyHttpsPort = '8443',
[string]$localDomainFqdn = 'contoso.local'
)
$proxy = 'http={0}:{1};https={0}:{2}' -f $proxyIp, $proxyHttpPort, $proxyHttpsPort
$bypasslist = '*.{0};<local>' -f $localDomainFqdn
# Set WinHTTP proxy
@azet
azet / Datacenter-Operations__here_be_dragons.md
Last active May 29, 2025 15:15
Reading material for Operations & Datacenter engineers and managers

Check Out these projects, papers and blog posts if you're working on Geo redundant Datacenters or even if you only need to have your software hosted there. It's good to know what you're in for.

  Collected these for a colleague, these have been super useful over 
  the past 15+ years and and will most likely help and/or entertain you. 
  May be extended in the future.
  -- azet (@azet.org)

load balancing

DNS geo & anycast

@kimdre
kimdre / README.md
Last active March 6, 2024 00:50
Fail2ban Config for CheckMk Authentication over Web UI

CheckMk Web Auth Fail2ban Config

Fail2ban Config for CheckMk Authentication over Web UI

This is a example fail2ban config for failed login attempts in the CheckMK Web UI Login Form.

Setup

Check for log files

CheckMK logs failed login attempts for each site separately at ~/var/log/web.log (relative path from the site's user).

@robin-checkmk
robin-checkmk / yt.yml
Created August 17, 2022 08:09
yt.yml from the Checkmk Ansible collection introduction
- name: "Roles."
hosts: localhost
gather_facts: true
vars_files:
- ./vars/config.yml
tasks:
- name: "Run server role."
ansible.builtin.import_role:
name: tribe29.checkmk.server
@kekyo
kekyo / Creator_CI20.md
Last active June 24, 2025 11:47
How to update latest packages on Imagination Creator CI20 Debian 8 (jessie)

How to update latest packages on Imagination Creator CI20 Debian 8 (jessie)

Imagination Creator CI20 board: A MIPS32 architecture evaluation board.

Imagination Creator CI20 board


@swisskyrepo
swisskyrepo / main.yml
Created March 12, 2022 23:03
Elastic EDR Ansible
---
- name: Add required dependencies.
apt:
name:
- apt-transport-https
- gnupg2
state: present
- name: Add Elasticsearch apt key.
apt_key:
fs.com type switches, model S5850 run regular linux.
Secret command "start shell" can be used to spawn regular shell on switch for debugging.
Password for this: !@#
Example:
$ show version
FSOS Software, S5850, Version 7.2.1
Copyright (C) 2020 by FS.COM. All rights reserved.