Skip to content

Instantly share code, notes, and snippets.

View mdriscoll93's full-sized avatar
🥨
Focusing

Mark Driscoll mdriscoll93

🥨
Focusing
View GitHub Profile
@mdriscoll93
mdriscoll93 / ovpn-server-iptables.md
Last active December 9, 2025 15:24
openvpn server iptables rules

how to configure iptables on hosts running ovpn server

sub the following Destination Port DPORT for TCP Port [0-9] --> or the exact combination of protocol/port you've chosen to use. By default, OpenVPN will use UDP 1194

@mdriscoll93
mdriscoll93 / get-ssh.sh
Created June 2, 2025 05:17
Buffalo NAS
#!/bin/sh
IP=$1
PW=$2
if [ -z "$IP" ]; then
echo Usage: $0 \<Linkstation IP\> [Linkstation web login password]
else
[ -z "$PW" ] && PW=password
path=`dirname $0`
# DO NOT EDIT THIS FILE! It was created by Wireshark
@Bad TCP@tcp.analysis.flags && !tcp.analysis.window_update@[56026,56026,56026][63222,0,5397]
@TCP Expert Warning@tcp.analysis.flags and not (tcp.analysis.keep_alive or tcp.analysis.keep_alive_ack or tcp.analysis.window_update)@[56797,56797,56797][64764,4883,4369]
@TCP RST@tcp.flags.reset eq 1@[58082,58082,58082][65021,35723,8224]
@TCP SYN Flag only@tcp.flags.syn==1 and not tcp.flags.ack==1@[50115,65278,48573][8738,34181,7196]
@TCP FIN Flag@(tcp.flags.fin==1)@[65535,65535,65535][8995,35209,31354]
@TCP Push@tcp.flags.push == 1@[43690,43690,43690][65535,65021,13107]
@TCP SYN/FIN@tcp.flags & 0x02 || tcp.flags.fin == 1@[54998,65535,55769][62451,40606,5140]
@TCP Duplicate ACK@tcp.analysis.duplicate_ack@[65278,47545,64764][64764,0,61423]
@TCP naked ACK@tcp.flags == 0x0010 && frame.len<=64@[50886,65535,64764][3855,0,62965]
#!/bin/bash
set -euo pipefail
LEXAR_MOUNT="/mnt/lexar"
BTRFS_MOUNT="/mnt/btrfs_ro"
BTRFS_DEV="/dev/sda2"
LEXAR_DEV="/dev/sdc1"
INODE=7392553
mkdir -p "$LEXAR_MOUNT" "$BTRFS_MOUNT"
@mdriscoll93
mdriscoll93 / broccoli_beef.html
Last active February 23, 2026 23:10
html and food
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Broccoli Beef Recipe</title>
<style>
body {
font-family: sans-serif;
@mdriscoll93
mdriscoll93 / curl_config.md
Last active January 8, 2025 04:13
curl performance monitoring

s3 backend performance testing

S3 providers such as Wasabi have begun integrating "S3 Endpoint Speed Tests" using Ookla's API as some kind lame of cop out to avoid testing the performance of their services.

These "metrics" mislead customers and partners into, you guessed it, shifting blame onto us.

Luckily, employees of Acronis are smart and talented & also take pride in the performance of our product / take ownership when product performance is less than excellent.

we'll need the following tools:

@mdriscoll93
mdriscoll93 / 70-wifi-wired-exclusive.sh
Created January 6, 2025 22:17
dock helper via nm dispatcher scripts
#!/bin/bash
# /etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive.sh
export LC_ALL=C
enable_disable_wifi ()
{
result=$(nmcli dev | grep "ethernet" | grep -w "connected")
if [ -n "$result" ]; then
nmcli radio wifi off
else
@mdriscoll93
mdriscoll93 / tree.sh
Created October 26, 2024 14:10
conifers at the command line
#!/bin/env bash
# just in case your default repositories don't contain `tree`
trap "tput reset; tput cnorm; exit" 2
# setup
clear
tput civis
tree_height=20 # Set tree height
col_center=$(($(tput cols) / 2)) # Center
@mdriscoll93
mdriscoll93 / iscsi-sniffing.md
Created February 9, 2024 10:33
Insecure Small Computer System Interface - iSCSI tracing 4 simps

‎‎​

@mdriscoll93
mdriscoll93 / monitor.sh
Last active April 9, 2024 22:46
monitor.sh
#!/bin/bash
# monitor.sh begins here
# Save this script as monitor.sh
# Allocate read write execute permissions: chmod +rwx monitor.sh
# Help available with: ./monitor.sh -h
# License: Creative Commons Zero - https://creativecommons.org/publicdomain/zero/1.0/
VERSION=55
USAGE=$(cat <<-EOM