Skip to content

Instantly share code, notes, and snippets.

View 3mRoshdy's full-sized avatar
👟

Roshdy 3mRoshdy

👟
View GitHub Profile
@3mRoshdy
3mRoshdy / sbom.sh
Last active January 16, 2025 09:03
Generate SBOM files based on lock file for python projects
#!/bin/bash
extraction_type="poetry"
if [ -f poetry.lock ]; then
echo "Exporting SBOM using poetry"
elif [ -f requirements.txt ]; then
echo "Exporting SBOM using requirements txt"
extraction_type="requirements"
elif [ -f uv.lock ]; then
echo "uv is not supported with cyclonedx-py, export the dependencies format to requirements-txt"
@3mRoshdy
3mRoshdy / .vimrc
Last active January 1, 2020 03:30
My .vimrc configs
" VIM STANDARD GLOBAL CONFIGS
syntax on
set number
filetype plugin indent on
set tabstop=2 shiftwidth=2 expandtab
set backspace=indent,eol,start
set showmatch
set wildmenu
" setting highlight search
set hls