Skip to content

Instantly share code, notes, and snippets.

@brndnsvr
brndnsvr / network-imix-perf-test.sh
Created January 7, 2025 21:15 — forked from RezaAmbler/network-imix-perf-test.sh
# network-imix-perf-test.sh Automated network testing script that generates concurrent TCP/UDP traffic using IMIX patterns. Features configurable bandwidth (50-450 Mbps), multiple packet sizes, and comprehensive logging.
#!/bin/bash
###################################################################################
# Network Testing Script
#
# This script performs comprehensive network testing using iperf3 with both TCP and UDP
# protocols. It supports IMIX packet sizes and various bandwidth configurations.
###################################################################################
# Configuration file and logging setup
@brndnsvr
brndnsvr / smtp_icloud.py
Created November 26, 2022 12:44 — forked from chrisswanda/smtp_icloud.py
Python script to send mail via Apple's iCloud. Be sure to setup an app specific password for and do not use or expose your iCloud password. https://support.apple.com/en-us/HT204397
import smtplib
#email.mime.multipart is specific to python3
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
msg = MIMEMultipart()
msg['From'] = 'sendfrom@mail.com'
msg['To'] = 'sendto@mail.com'
msg['Subject'] = 'Subject'