Skip to content

Instantly share code, notes, and snippets.

@rbpi
rbpi / htb_exam_monitoring.py
Last active May 8, 2024 10:02
HTB Academy Certificate Exams Results Monitoring
# HTB Academy Certificate Exams Results Monitoring
# Author: RBPi
import requests
import time
import random
import os
import urllib.parse
import urllib.request

Enable & Using vGPU Passthrough

This gist is almost entirely not unlike Derek Seaman's awesome blog:

Proxmox VE 8: Windows 11 vGPU (VT-d) Passthrough with Intel Alder Lake

As such please refer to that for pictures, here i will capture the command lines I used as i sequence the commands a little differently so it makes more logic to me.

This gists assumes you are not running ZFS and are not passing any other PCIE devices (as both of these can require addtional steps - see Derek's blog for more info)

This gist assumes you are not running proxmox in UEFI Secure boot - if you are please refer entirely to dereks blog.

- platform: mqtt
name: "quat toilet"
command_topic: "cmnd/tasmota_44CBF3/IRSend"
payload_on: "0,1274,402,1272,402,434,1266,1248,428,1248,402,434,1244,434,1244,1270,402,434,1244,434,1244,434,1268,410,7968"
payload_off: "0,1268,406,1242,432,432,1246,1266,408,1266,408,406,1272,428,1250,430,1246,434,1244,406,1272,432,1244,1270,7128"
oscillation_command_topic: "cmnd/tasmota_44CBF3/IRSend"
payload_oscillation_on: "0,1276,406,1278,408,406,1300,1252,430,1252,428,400,1286,412,1272,410,1248,436,1272,386,1274,1276,404,436,7996"
payload_oscillation_off: "0,1276,406,1278,408,406,1300,1252,430,1252,428,400,1286,412,1272,410,1248,436,1272,386,1274,1276,404,436,7996"
@f-steff
f-steff / excel formulas.md
Last active November 25, 2025 13:12
Excel formulas to calculate IP values such as Netmask, IP range start, IP range end, Broadcast IP, Number of hosts.

Excel formulas to calculate IP values - Works in Excel and Google Sheet.

Updated 2023-12-11: Hosts calculation updated to support CIDR or 31 and 32.

Prerequisites:

  • A1 contains an IP address, such as 10.0.0.2
  • B1 contains the number of bits in the netmask (CIDR) such as 24

The below formulas then go into C1, D1 etc. to perform the various calculations. Some calculations depends on other calculations.