Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@FlorianHeigl
FlorianHeigl / gist:3b1c2e5285e2155d1a386f8816584eb8
Created July 11, 2024 04:06
ipmi bios reset / review boot settings
$ ipmitool -I lanplus -H 192.168.xx-U admin -P $ABC chassis bootparam get 5
Boot parameter version: 1
Boot parameter 5 is valid/unlocked
Boot parameter data: e018000000
Boot Flags :
- Boot Flag Valid
- Options apply to all future boots
- BIOS EFI boot
- Boot Device Selector : Force Boot into BIOS Setup
- BIOS verbosity : System Default
@FlorianHeigl
FlorianHeigl / gist:00560a59981395bddd5670f5d06f4c08
Last active July 3, 2024 16:12
Alpine regreSSHion mititgation
# switch ssh daemon from OpenSSH to dropbear
# temporary workaround
service sshd stop
rc-update del sshd
setup-sshd # select dropbear
# replace ssh host keys from openssh
# (or update ssh host keys `ssh-keyscan`)
apk add dropbear-convert
@FlorianHeigl
FlorianHeigl / fio.txt
Created June 21, 2024 01:31
sas io shredding
root@localhost:~# fio --rw=randwrite --name=TP-write --bs=256k --direct=1 --filename=thiz --numjobs=4 --ioengine=libaio --iodepth=256 --refill_buffers --group_reporting --runtime=60 --time_based --size=1G
TP-write: (g=0): rw=randwrite, bs=(R) 256KiB-256KiB, (W) 256KiB-256KiB, (T) 256KiB-256KiB, ioengine=libaio, iodepth=256
...
fio-3.28
Starting 4 processes
Jobs: 4 (f=4): [w(4)][100.0%][w=584MiB/s][w=2334 IOPS][eta 00m:00s]
TP-write: (groupid=0, jobs=4): err= 0: pid=2406: Fri Jun 21 01:29:48 2024
write: IOPS=2623, BW=656MiB/s (688MB/s)(38.6GiB/60294msec); 0 zone resets
slat (usec): min=12, max=401142, avg=198.77, stdev=6193.70
clat (msec): min=20, max=1284, avg=389.84, stdev=96.90
[...]
set interfaces et-0/0/48 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
set interfaces xe-0/0/48:0 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
set interfaces xe-0/0/48:1 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
set interfaces xe-0/0/48:2 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
set interfaces xe-0/0/48:3 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
set interfaces et-0/0/49 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
set interfaces xe-0/0/49:0 unit 0 family inet dhcp vendor-id Juniper-qfx5110-48s-4c
@FlorianHeigl
FlorianHeigl / cli-cmds.md
Last active June 8, 2024 15:37
Mellanox/NVidia Onyx virtualization commands & howto (Alpine Linux VM)

Useful Onyx CLI commands

Scope:Global

These are entered at the (config) prompt.

job command
check available memory show memory
check available storage space show files system
#!/bin/sh
#
# This shell script if placed in /etc/apcupsd
# will be called by /etc/apcupsd/apccontrol when apcupsd
# loses contact with the UPS (i.e. the serial connection is not responding).
# We send an email message to root to notify him.
#
HOSTNAME=`hostname`
MSG="$HOSTNAME Communications with UPS $1 lost"
@FlorianHeigl
FlorianHeigl / hosts_synology_misc
Created January 8, 2024 21:51
pfSense rules for Synology NAS
gofile.me File Sharing
checkport.synology.com Connectivity Test 82/tcp
help.synology.com Online Help (needed from NAS?)
sns.synology.com Push notification
notification.synology.com Push notification
myds.synology.com Entry added Mon, 08 Jan 2024 21:43:51 +0000
database.clamav.net Antivirus - ClamAV
myds.synology.com Antivirus - ClamAV
update.nai.com Antivirus - McAfee
docker.io Containers und C2 ID Edge
@FlorianHeigl
FlorianHeigl / yum-upgrade-output
Created January 5, 2024 16:59
yum fastestmirror country bug russia
[root@gitlab ~]# yum upgrade
Loaded plugins: etckeeper, fastestmirror, fs-snapshot, keys, post-transaction-actions, ps, rpm-warm-cache
Determining fastest mirrors
epel/x86_64/metalink | 33 kB 00:00:00
Including mirror: centos.schlundtech.de
Including mirror: mirror.speedkom.de
Including mirror: de.mirrors.clouvider.net
Including mirror: centos.intergenia.de
Including mirror: mirror1.hs-esslingen.de
Including mirror: ftp.tu-chemnitz.de
@FlorianHeigl
FlorianHeigl / README.md
Last active November 22, 2023 19:40
pfSense IPSec VPN Status
@FlorianHeigl
FlorianHeigl / mix-qr.zpl
Created August 31, 2023 18:17
zpl tests
^XA
^FO20,10^BQ,2,4^FDMM,Ahttp://netbox.ifz-muenchen.de/obj-demo-url^FS
^FO145,10^BQ,2,3^FDMM,AHALLO ICH BIMS^FS
^CF0,20
^FO143,100^FDsw-demo^FS
^XZ