Skip to content

Instantly share code, notes, and snippets.

View maxpain's full-sized avatar
💭
Working on FASTCUP

Max Makarov maxpain

💭
Working on FASTCUP
View GitHub Profile
@maxpain
maxpain / gist:4d4b5d619c4589a68776be620dd2eddf
Created August 2, 2025 14:06
fio script for complex benchmarking
#!/bin/sh
run(){
name="$1"
shift
(
set -x
fio -name="$name" -filename=$disk -output-format=json --output=results/$disk_dashed-$name.json -ioengine=libaio -direct=1 -randrepeat=0 -random_generator=tausworthe64 -size=100G -runtime=60 -time_based=1 "$@"
)
}
@maxpain
maxpain / interfaces.yaml.j2
Last active March 9, 2025 20:47
Talos Ansible Role
- interface: {{ 'bond0' if hostvars[item].bond_interfaces | length > 0 else 'eth0' }}
dhcp: false
addresses:
- {{ hostvars[item].ip }}
routes:
- network: 0.0.0.0/0
gateway: {{ hostvars[item].ip | ipaddr('1') | ipaddr('address') }}
{% if hostvars[item].bond_interfaces | length > 0 %}
bond:
interfaces: {{ hostvars[item].bond_interfaces }}