Skip to content

Instantly share code, notes, and snippets.

View Fiooodooor's full-sized avatar

Milosz Linkiewicz Fiooodooor

View GitHub Profile
#
# ░▒▓█▓▒░ ░▒▓███████▓▒░ ░▒▓████████▓▒░ ░▒▓████████▓▒░ ░▒▓█▓▒░ ░▒▓██████████████▓▒░ ░▒▓████████▓▒░ ░▒▓███████▓▒░ ░▒▓█▓▒░ ░▒▓██████▓▒░
# ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
# ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
# ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓████████▓▒░
# ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
# ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░
# ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓████████▓▒░ ░▒▓████████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████

Migrating a PostgreSQL database from version 15 to version 16 for NetBox v4 involves upgrading the PostgreSQL instance while ensuring the NetBox data remains intact. PostgreSQL 16 introduces improvements like better performance, new monitoring features, and some syntax changes, but it’s a minor version upgrade, so the process is relatively straightforward. Below is a step-by-step guide to migrate your NetBox v4 database from PostgreSQL 15 to PostgreSQL 16. Prerequisites Current Setup: NetBox v4 running with PostgreSQL 15. Target Setup: A system where PostgreSQL 16 will be installed (this can be the same server or a different one). Backup: Always back up your database before starting. Downtime: Plan for downtime, as NetBox will be unavailable during the migration. Compatibility: NetBox v4 supports PostgreSQL 16 (as of March 07, 2025, based on current trends and NetBox’s requirements), but verify this with the latest NetBox documentation if you’re using a newer release. Steps to Migrate PostgreSQL 15 to Postgre

Since your question specifically involves the Cisco 9500-32C, I’ll reiterate and tailor the response to focus solely on this model when connecting the NEWT-IPX (1000DR-204-09) NET 1 and NET 2 ports to its 25G interfaces. Below are the potential issues you might encounter, specific to the Cisco Catalyst 9500-32C:
1. Port Restrictions for Breakout
Description: The Cisco 9500-32C has 32 QSFP28 ports, each capable of 100G or 40G natively. Breakout cables (e.g., QSFP-4SFP25G) can split these into four 25G SFP28 interfaces, but this is supported on only 24 of the 32 ports. Ports 4, 8, 12, 16, 20, 24, 28, and 32 do not support breakout due to hardware ASIC constraints.
Potential Issue: If you connect the NEWT-IPX NET 1 and NET 2 ports to these restricted ports (e.g., port 4 or 8), the 25G interfaces won’t work. You must select ports from the 24 that support breakout (e.g., ports 1, 2, 3, 5, etc.).
2. Port Numbering Changes with Breakout
Description: On the 9500-32C, enabling breakout changes the port designation. Fo
#!/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
@Fiooodooor
Fiooodooor / react.md
Last active March 31, 2025 16:15
react
Github app https://x.com/i/grok/share/h9J47T4gWQbHHqUoCBWRTMAAF
https://x.com/i/grok/share/8wL0z4GdDHGNzd0z32mEmOIXz
https://x.com/i/grok/share/sJhqUoDxOSQan91WKHJgzEIGA
https://x.com/i/grok/share/voEEOfG7RcTvsuCgJ8GpOiwho
https://x.com/i/grok/share/iNgFl3BNVMnSLM0ArPg0HlEDZ
@Fiooodooor
Fiooodooor / grok-2-nic-100.md
Last active February 20, 2025 03:25
LLM for high performance 8x NIC card configuration

The Prompt for Grok2

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 SP-X bmc and ami BIOS. Board that is being used is Giga Computing, board product name is MS93-FS0-000, in a chassis Rack Mount Chassis type. Reiterate the responses and my questions - and now go through kernel boot settings/params an

@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" />