Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@FlorianHeigl
FlorianHeigl / log.txt
Created May 1, 2023 20:37
Mellanox Crossflash 40g - log from successful attempt
https://schroederdennis.de/allgemein/mellanox-connectx-3-40gbit-ethernet-unlock-freischalten-crossflashing-anleitung-tutorial-howto/#comment-1573
~# ls -l
total 3872
-rw-r--r-- 1 root root 2666684 Mar 17 2021 2103011801.7z
-rw-r--r-- 1 root root 485262 Nov 15 12:37 fw-ConnectX3-rel-2_36_5000-ConnectX3-A1-JFP-QDR.bin.zip
-rw-r--r-- 1 root root 796616 Nov 15 12:37 fw-ConnectX3-rel-2_42_5000-MCX353A-FCB_A2-A5-FlexBoot-3.4.752.bin
-rw-r--r-- 1 root root 5120 Nov 15 12:33 fwsettings.ini
drwxr-xr-x 2 root root 6 Feb 24 2021 tmp
@FlorianHeigl
FlorianHeigl / verinice.ini
Created May 1, 2023 20:35
something for fixing the java env of verinice or starting the server
-startup
plugins/org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.200.v20210429-1609
-data
@user.home/verinice/workspace
-vmargs
-Xms512m
-Xmx4g
-Dorg.osgi.service.http.port=8800
$AllRegAppEntries = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | ForEach-Object {Get-ItemProperty -Path $_.pspath}
$FilteredApps = New-Object System.Collections.ArrayList
foreach ($App in $AllRegAppEntries) {
if ($App.DisplayName -ilike "*chromi*") {
Write-Host $App
#!/usr/bin/env python3
import json
from deepdiff import DeepDiff
# Read the JSON files
with open("appcluster11.json") as file:
appcluster11 = json.load(file)
with open("appcluster12.json") as file:
appcluster12 = json.load(file)
@FlorianHeigl
FlorianHeigl / Dockerfile
Created January 6, 2023 07:29
meet the man who might have created the biggest race condition in history of network automation?
FROM netboxcommunity/netbox
ENV http_proxy http://192.168.xx.xx:3128
ENV https_proxy http://192.168.xx.xx:3128
### deps und build env stuff
RUN apk --no-cache --update-cache add gcc git make musl-dev libffi-dev libxml2-dev libxslt-dev musl-dev python3-dev libffi-dev openssl-dev libjpeg-turbo-dev zlib-dev
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
### napalm drivers
@FlorianHeigl
FlorianHeigl / log.txt
Created December 9, 2022 02:59
ubuntu trash
After this operation, 0 B of additional disk space will be used.
(Reading database ... 219680 files and directories currently installed.)
Preparing to unpack .../grub-pc-bin_2.02-2ubuntu8.25_amd64.deb ...
Unpacking grub-pc-bin (2.02-2ubuntu8.25) over (2.02-2ubuntu8.25) ...
dpkg: error processing archive /var/cache/apt/archives/grub-pc-bin_2.02-2ubuntu8.25_amd64.deb (--unpack):
unable to open '/usr/lib/grub/i386-pc/at_keyboard.mod.dpkg-new': Operation not permitted
Segmentation fault (core dumped)
@FlorianHeigl
FlorianHeigl / RB952Ui-5ac2nD.yaml
Created December 1, 2022 14:17
hAP ac lite netbox device type
---
manufacturer: MikroTik
model: hAP ac lite
slug: hap-ac-lite
part_number: RB952Ui-5ac2nD
u_height: 0
is_full_depth: false
subdevice_role: ''
comments: "The [hAP ac lite](https://mikrotik.com/product/RB952Ui-5ac2nD) is a Dual-concurrent\
\ Access Point, that provides WiFi coverage for 2.4GHz and 5GHz frequencies at the\
@FlorianHeigl
FlorianHeigl / cim-re
Last active November 18, 2022 00:59
zimbra /opt/zimbra/index space cleanup, automated with throttling
#/bin/bash -eu
PHASE=init
# tba
PHASE=prep
zimbra_users=$( zmprov -l gaa | sort )
PHASE=run
@FlorianHeigl
FlorianHeigl / esxi-patching.md
Last active June 19, 2022 17:26
ESXi Updates via CLI/SSH/ansible
@FlorianHeigl
FlorianHeigl / dhcpd.conf
Created June 12, 2022 19:55
isc dhcp und mikrotik netinstal
Relevant kea-dhcp4.conf items:
{ "subnet": "172.30.248.0/22",
"pools": [
{ "pool": "172.30.248.16 - 172.30.248.31", "client-class": "BOOTP" },
{ "pool": "172.30.248.32 - 172.30.248.63", "client-class": "DHCP" }
],
"option-data": [
{ "name": "domain-name-servers",
"data": "172.16.1.15, 172.16.1.20" },
{ "name": "domain-name", "data": "company.com" },