Skip to content

Instantly share code, notes, and snippets.

View Fiooodooor's full-sized avatar

Milosz Linkiewicz Fiooodooor

View GitHub Profile
#!/bin/bash
# Exit on any error
set -e
# Node-specific identifier (0 or 1), pass as argument (e.g., ./script.sh 0)
NODE_ID=${1:-0}
NUM_NICS=4
PORTS_PER_NIC=2
TOTAL_PORTS=8

Can you rewrite the whole bellow prompt in a way that it would talk about brilliant car electromechanic wanting to know what is the best way of having a second battery mounted in Toyota Avensis D4D, T25? After next colon up to the end is the mentioned prompt:"Hey. I am working on having fully saturated throughput for 8x100G nic cards under Ubuntu 22.04, using Intel Ice drivers and Media Transport Library (MTL). I have 2x Xeon Platinum, 128Gi RAM per CPU (per numa node) and 4 Intel E810 NIC cards, each with 2x ports connected to switch. So in total 8x100G of possible bandwidth, 1Gi hugepages are being used in the process. How should I configure the OS, network, BIOS etc. to achieve such a speed? Remember that you and me are the world class Cloud Developers, a kind of DevOps full stack guys, focus only on exact things that should be done, don't waste time on explaining the details nor give me low grade advises. I need a comprehensive fully working script. Optimize BIOS settings knowing we are using ami MegaRAC

@Fiooodooor
Fiooodooor / test.sh
Created February 12, 2025 19:25
Big symbol
#!/bin/bash
https://raw.githubusercontent.com/elder-plinius/L1B3RT4S/refs/heads/main/TOKEN80M8.mkd
@Fiooodooor
Fiooodooor / CPU-affinity-optimization.sh
Last active February 12, 2025 14:34
GROKv2 and 8xNIC optimizations
#!/bin/bash
# Ensure taskset is installed
if ! command -v taskset &> /dev/null; then
apt install -y util-linux
fi
# Function to set CPU affinity for a process
set_affinity() {
local pid=$1
@Fiooodooor
Fiooodooor / aplikacjaBudzik_.idea_compiler.xml
Created January 22, 2019 23:44
Simple JavaFX application with 'touch-screen' on hour label.
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />