Skip to content

Instantly share code, notes, and snippets.

View HarmonicHemispheres's full-sized avatar

Robby Boney HarmonicHemispheres

View GitHub Profile
@HarmonicHemispheres
HarmonicHemispheres / generate_sbom.py
Created September 24, 2024 23:39
Generates a Software Bill of Materials (SBOM) in Markdown format by parsing `pyproject.toml` and `poetry.lock` files of a Python project.
"""
Software Bill of Materials (SBOM) Generator
This script generates a Software Bill of Materials (SBOM) in Markdown format by parsing
`pyproject.toml` and `poetry.lock` files of a Python project. It fetches metadata from PyPI
for each dependency and compiles a comprehensive SBOM detailing components, versions,
licenses, and more.
## Prerequisites
@HarmonicHemispheres
HarmonicHemispheres / guid_maker.ps1
Created November 10, 2023 17:48
Random GUID Pattern Generator
<#
This script was written by Bing Chat.
This script generates a random string with the same length as the given GUID.
INSTRUCTIONS:
1. Replace the input variable with your own GUID.
2. Run the script.
DISCLAIMER:
@HarmonicHemispheres
HarmonicHemispheres / sql_json_cheatsheet.sql
Created November 24, 2021 21:30
A Cheat Sheet for SQL Server JSON
-- -------------------------------------------------------------------
-- AUTHOR: Robby Boney
-- LICENSE: MIT
-- DESCRIPTION:
-- This is a simple cheat sheet for working with SQL Server JSON
-- data. It may not be complete but covers many of the aspects
-- I find useful to have examples for. For more details on SQL
-- Server JSON, see:
-- https://docs.microsoft.com/en-us/sql/relational-databases/json/json-data-sql-server?view=sql-server-ver15
-- -------------------------------------------------------------------
@HarmonicHemispheres
HarmonicHemispheres / proc.py
Last active August 20, 2022 18:11
Simple Customizable Cross-Platform Subprocessor
import subprocess as sp
import sys
import platform
from typing import Optional
class Proc:
"""
DESCRIPTION:
CREDIT: https://gist.github.com/HarmonicHemispheres/2ab991476e37ae20796a70de3d43c90a
@HarmonicHemispheres
HarmonicHemispheres / template_simple_cli.py
Last active August 21, 2022 22:56
Template Typer CLI Script - Python 3.7+
"""
Copyright <<year>> <<insert publisher name>>
DESCRIPTION:
this is a sample Typer CLI layout
USAGE EXAMPLE:
> python template_simple_cli.py example_cmd
"""