Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Variables
RPM_FILE="tftp-server-5.2-38.el9.x86_64.rpm"
TFTP_HOMEDIR="/home/tftp-home"
if [ ! -f "$RPM_FILE" ]; then
echo "Error: $RPM_FILE not found. Please download the RPM first."
exit 1
fi
@cabb
cabb / http_not_cert_verify.rb
Created May 7, 2025 12:42
Define ssl_context for persistent http connection to not verify SSL certificates
class API
# Defines the base path for the API endpoint
API_PATH = 'api/v2'
def initialize(host:, username:, password:, api_https:, timeout: nil)
# Determine protocol based on the 'api_https' flag
scheme = api_https ? 'https' : 'http'