Skip to content

Instantly share code, notes, and snippets.

View Rugby-Ball's full-sized avatar

Ed Walsh Rugby-Ball

View GitHub Profile
@Rugby-Ball
Rugby-Ball / Daily n8n + Postgres Backup (4AM).json
Last active October 14, 2025 18:57
Backs upn8n WorkFlows, Postgres DB, and credentials every day at 4am, and purges any older than 10 days. #n8n #Backup #Public
{
"name": "Daily n8n + Postgres Backup (4AM)",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{}
]
}
@Rugby-Ball
Rugby-Ball / Fact-check-youtube
Created August 19, 2025 05:44
A Perplexity AI Prompt for fact-checking YouTube videos.
You are an expert fact-checker and political analyst. Your task is to analyze a YouTube video comprehensively by following this enhanced protocol to prevent analytical errors and ensure technical accuracy.
## CRITICAL ANALYSIS PROTOCOL
Execute these phases in sequence:
- **Phase 1:** Extract and categorize all claims systematically
- **Phase 2:** Research each claim with multiple verified sources
- **Phase 3:** IDENTIFY TARGET of criticism before assessing political bias
- **Phase 4:** Create visual charts and diagrams as images (NOT Mermaid.js)
- **Phase 5:** Cross-verify all findings against collected evidence
@Rugby-Ball
Rugby-Ball / extract_pdf_to_md.py
Created March 10, 2025 15:47
Use this to extract PDF content and images from a Protected PDF file. #Python #PDF #Public
# Required Libraries
# pip install pymupdf pdfplumber Pillow
import fitz # PyMuPDF
import pdfplumber
import os
pdf_file = "2024-SOC2-Report-for-Forsta-Division-Products.pdf"
output_dir = "extracted_markdown"
images_dir = os.path.join(output_dir, "images")
@Rugby-Ball
Rugby-Ball / check_ssl_tls_versions.py
Last active December 18, 2024 22:44
Function, enter in urls to check what TLS version is in use. Output to screen, and offer user to save as a text file. #Public #Audit #Utility #SSL_Certificate #Python #Security #TLS
import socket
import ssl
from datetime import datetime
import sys
import os
from typing import Dict, Any
from io import StringIO
def check_ssl_tls_versions(url: str, port: int = 443) -> Dict[str, Any]:
@Rugby-Ball
Rugby-Ball / Fabric AI - danielmiessler - Version Checker
Created December 16, 2024 15:53
Used to get Fabric AI Version from Github. You can use in your PowerShell $Profile #Utility #PowerShell #Fabric #AI #Public
#Used to get Fabric AI Version from Github. You can use in your PowerShell $Profile
Function fabricv {
# Clear the console screen
Clear-Host
# Define the repository details
$owner = "danielmiessler"
$repository = "fabric"
# Construct the API URL for the latest release
@Rugby-Ball
Rugby-Ball / rt53_webhosted_s3_bucket_check.ps1
Last active October 14, 2024 20:28
You enter in the AWS Route 53 name orHostedZone ID, and it will check if you have entries pointing to an S3, and if the S3 bucket exists, and has Webhosting turned on. #Utility #AWS #Public #S3 #Route_53
# rt53_webhosted_s3_bucket_check.ps1
<#
Description: You enter in the AWS Route 53 name orHostedZone ID, and it will check if you have entries pointing to an S3, and if the S3 bucket exists, and has Webhosting turned on.
Written: Ed Walsh
PowerShell.Core tested: Yes
MS-Graph: No
Version: 1.1.1
Create Date: 10/14/2024
Revised Date: 10/14/2024
#>
@Rugby-Ball
Rugby-Ball / ocsp-domain-validation.ps1
Created June 12, 2024 01:31
Performs an OpeSSL OCSP domain verification on a URL's SSL #Utility #Public #Security #OpenSSL
# ocsp-domain-validation.ps1
<#
Description: Performs an OpeSSL OCSP domain verification on a URL's SSL certification.
Written: Ed Walsh
PowerShell.Core tested: Yes
MS-Graph: No
Version: 1.0.0
Create Date: 6/11/2024
Revised Date: 6/11/2024
#>
@Rugby-Ball
Rugby-Ball / aws-user-CloudTrail-report-all-aws-regions.ps1
Created May 31, 2024 14:52
Pull the AWS cloud trail activity for selected users, does this accross all AWS Regions. Exports to a CSV file. #Utility #Public #Security #AWS #AWS_CloudTrail
# aws-user-CloudTrail-report-all-aws-regions.ps1
<#
Description: Pull the AWS cloud trail activity for selected users, does this accross all AWS Regions. Exports to a CSV file.
Written: Ed Walsh
PowerShell.Core tested: Yes
Version: 1.0.0
Create Date : 5/30/2024
Revised Date: 5/30/2024
#>
@Rugby-Ball
Rugby-Ball / Azure-create-all-bicep-files-environment.ps1
Created May 28, 2024 22:52
or Azure, creates all the Bicep files for an existing Azure Subscription, and exports to a folder. #Bicep #Public #Utility #BackUp #Azure #Disaster_Recovery #DR
# Azure-create-all-bicep-files-environment.ps1
<#
Description: For Azure, creates all the Bicep files for an existing Azure Subscription, and exports to a folder.
Edited by: Ed Walsh
PowerShell.Core tested: Yes
MS-Graph: No
Version: 1.0.0
Create Date: 5/28/2024
Revised Date: 5/28/2024
#>
@Rugby-Ball
Rugby-Ball / Azure-FireWall-Status-Inventory.ps1
Created April 24, 2024 19:26
For Azure, get inventory of running Windows servers and status of the three Firewall Profiles. #Utility #Security #Public #Inventory #Audit #Azure
# Azure-FireWall-Status-Inventory.ps1
<#
Description: For Azure, get inventory of running Windows servers and status of the three Firewall Profiles.
Edited by: Ed Walsh
PowerShell.Core tested: Yes
MS-Graph: No
Version: 1.0.0
Create Date: 4/23/2024
Revised Date: 4/23/2024
#>