Skip to content

Instantly share code, notes, and snippets.

View danchev's full-sized avatar
💭
I may be slow to respond.

Dobri Danchev danchev

💭
I may be slow to respond.
View GitHub Profile
@danchev
danchev / cuda_glibc_241_compat.diff
Last active September 22, 2025 15:40
Scripts to patch CUDA math_functions.h for glibc 2.42 compatibility
--- a/math_functions.h 00:02:30.815134398 +0300
+++ b/math_functions.h 00:03:30.815134398 +0300
@@ -2547,7 +2547,7 @@
*
* \note_accuracy_double
*/
-extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x);
+extern __DEVICE_FUNCTIONS_DECL__ __device_builtin__ double sinpi(double x) noexcept (true);
/**
* \ingroup CUDA_MATH_SINGLE
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danchev
danchev / api-mandate.md
Created January 25, 2025 20:59
Bezos API Mandate

Bezos API Mandate

In 2002, Amazon founder and CEO Jeff Bezos sent a mandate to his employees that has since become legendary in IT circles. It reads as follows:

  1. All teams will henceforth expose their data and functionality through service interfaces.
  2. Teams must communicate with each other through these interfaces.
  3. There will be no other form of interprocess communication allowed: no direct linking, no direct reads of another team's data store, no shared-memory model, no back-doors whatsoever. The only communication allowed is via service interface calls over the network.
  4. It doesn’t matter what technology they use. HTTP, Corba, Pubsub, custom protocols — doesn’t matter.
  5. All service interfaces, without exception, must be designed from the ground up to be externalizable. That is to say, the team must plan and design to be able to expose the interface to developers in the outside world. No exceptions.
  6. Anyone who doesn’t do this will be fired.
@danchev
danchev / gpu-operator-nvaie-5.2.sh
Last active December 17, 2024 23:01
open-webui install scripts
#!/usr/bin/env bash
# Copyright (c) NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@danchev
danchev / ranger-cheatsheet.md
Last active August 25, 2025 15:12 — forked from heroheman/ranger-cheatsheet.md
Cheatsheets

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts

Keybase proof

I hereby claim:

  • I am danchev on github.
  • I am danchev (https://keybase.io/danchev) on keybase.
  • I have a public key ASCcKnDFdcXyJ_Wt6Bw5ldglIyb5Ta4TtpCSddxixFgDpAo

To claim this, I am signing this object:

OCP 4.2/4.3 All-In-One (UPI mode)

This document assume reader is familiar with the OCP4x installation process.

Before Deployment

  • Setup the install-config.yaml to deploy a single master and no workers
    apiVersion: v1
    baseDomain: example.com