Skip to content

Instantly share code, notes, and snippets.

View FlorianHeigl's full-sized avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@vladak
vladak / solaris-layered-debugging.md
Last active July 3, 2023 13:22
debugging a problem in Solaris from the top layer (userland) to the bottom layer (hardware)

Debugging a problem in Solaris through several OS layers

Background

This is a story about an operating system problem that occupied me at work in 2015 for couple of days. The goal is to give you an overview of debugging techniques and associated tools. I'd like to use this opportunity (writing this article for my students of the Unix programming class at the Mathematical-physical faculty of the Charles university in Prague in 2021) to provide some historical points, some background and some details about operating system work (I feel old writing this). As a bit of a spoiler, the cause of the problem turned out to be completely different than what it seemed initially and involved traversing multiple layers in the operating system. I love this kind of problems because it is fun and great learning experience. I vaguely remember a job advertisement in Netfix bunch of years back that demanded that the applicants posses intimate knowledge of the operating system internals down to (

@nahun
nahun / README.md
Last active November 5, 2024 09:42
NetBox with AzureAD OAuth

NetBox with AzureAD SSO using OAuth

This is an example setup with NetBox using AzureAD for authentication. It uses the Python Social Auth library.

Most of this was taken from this gist: https://gist.github.com/leoluk/16d91ec22d833945c7ac7ed2b3b05a27

This is written to support NetBox v2.10 to v3.0. I'll try to note differences for 2.9 or earlier.

NOTE: NetBox v3.1 added basic support for using social_auth so most of this is no longer required and can be placed in the configuration.py file.

AzureAD Setup

@chmutoff
chmutoff / jncia-junos-jn0-103.md
Last active July 10, 2025 10:15
JNCIA-Junos (JN0-103) summary

JNCIA-Junos (JN0-103) summary

v1.0

Author: Anton Chmutov Derevianko [email protected]

Product portfolio

Routers

  • M Series - first product by Juniper Networks, multiservice router (routing and MPLS services, no switches) Designed for enterprise and service providers.
  • T Series - no switching, only routing, old, performance upgrade for M. High end and core routers.
@dmrub
dmrub / unifi-ls-all-clients.py
Last active April 8, 2022 17:46
List all Unifi clients
#!/usr/bin/env python
#
# This code is based on
# https://github.com/finish06/pyunifi/blob/master/unifi-ls-clients
#
# 1. Install pyunifi
# pip install --user pyunifi
# 2. Run this script
# unifi-ls-all-clients -c UNIFI_HOST -b UNIFI_PORT -u USER -p PASSWORD -V
@ag-michael
ag-michael / falcondump.py
Created October 10, 2020 15:19
Dump Crowdstrike Falcon host data into elasticsearch
import requests
import json
import sys
import time
import datetime
from requests.auth import HTTPBasicAuth
import logging
import elasticsearch
import geoip
import traceback
@relvinhas
relvinhas / DANOS_VM_SETUP
Last active May 4, 2024 21:23
DANOS VM Setup - Passthrough and CPU pinning
virsh destroy edge-router
virsh undefine --nvram edge-router
virsh vol-delete edge-router --pool fast-storage
virt-install \
--name edge-router \
--cpu host-passthrough \
--vcpus=4,sockets=1,cores=4,threads=1 \
--ram 2048 \
--os-variant debian10 \
@joxz
joxz / _01.md
Last active April 3, 2025 03:25
Netbox SSO with Okta, Vouch and Nginx

Netbox SSO with Okta, Vouch and Nginx

@Alex4386
Alex4386 / apply_to_idrac.bat
Last active March 15, 2024 08:49
iDRAC 6 SSL Certificate Deploy Tool - with certbot
@echo off
echo Dell iDRAC 6 SSL Key upload system
echo.
echo ===[credentials]===
set default_hostname=your.idrac.address
rem Host Section
set /p host="Host (Default. %default_hostname%): "
IF NOT DEFINED host (
@neu5ron
neu5ron / quickly_get_zeek_into_elastic.md
Last active March 11, 2021 01:31
quick hack to get into any Elastic
@weshouman
weshouman / README.md
Last active September 7, 2022 20:15
Automating Synology Disk Station

Following are the steps I followed to have further understanding

  1. Know the architecture from this link. Whether the API totally encapsulates the CGI or there are some differences, that is not the topic of this guide, so it's better to be always aware of the Disk Station Architecture your script would support, so that when we have to read the sources we'll know which source to check

  2. Try a working ansible role. That will give a pretty good overview of how the interaction is implemented.

  3. Check the official docs for the