{"id":13598340,"url":"https://github.com/voytas75/VoytasCodeLab","last_synced_at":"2025-04-10T09:30:55.286Z","repository":{"id":244765355,"uuid":"816193458","full_name":"voytas75/VoytasCodeLab","owner":"voytas75","description":"A diverse collection of scripts, snippets, and functions","archived":false,"fork":false,"pushed_at":"2024-12-19T08:23:46.000Z","size":77,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-19T09:22:04.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voytas75.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-17T08:24:13.000Z","updated_at":"2024-12-19T08:23:50.000Z","dependencies_parsed_at":"2024-12-19T09:20:53.566Z","dependency_job_id":"746a7c08-bc1e-4a3c-bcf4-8b00bcaeabab","html_url":"https://github.com/voytas75/VoytasCodeLab","commit_stats":null,"previous_names":["voytas75/voytascodelab"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voytas75%2FVoytasCodeLab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voytas75%2FVoytasCodeLab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voytas75%2FVoytasCodeLab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voytas75%2FVoytasCodeLab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voytas75","download_url":"https://codeload.github.com/voytas75/VoytasCodeLab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248191652,"owners_count":21062546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T17:00:51.786Z","updated_at":"2025-04-10T09:30:55.275Z","avatar_url":"https://github.com/voytas75.png","language":"Python","readme":"# Welcome to VoytasCodeLab\n\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/A0A6KYBUS)\n\nExplore a diverse collection of my scripts, snippets, and functions across multiple programming languages. Whether you're working with PowerShell, Python, Bash, JavaScript, or more, **VoytasCodeLab** provides a valuable resource for automation, development, and learning. Dive into various coding examples and enhance your programming toolkit with Voytas.\n\n## The Code\n\n1. ### [Google Knowledge Graph Search Tool](./thecode/crewAI/config/google_KGS_tool.py)\n\n    [Python] [[CrewAI](https://github.com/crewAIInc/crewAI)] [[Google Knowledge Graph API](https://developers.google.com/knowledge-graph/)]\n\n    The `google_KGS_tool.py` script is designed to perform searches using the Google Knowledge Graph Search API. \n\n    **Key Features:**\n    - **Search Query**: Specify a literal string to search for in the Knowledge Graph.\n    - **Result Limit**: Limits the number of entities to be returned. Maximum is 500. Default is 10.\n    - **Language Support**: Specify the list of language codes to run the query with.\n    - **Type Restriction**: Restricts returned entities to those of the specified types.\n    - **Prefix Match**: Enables prefix (initial substring) match against names and aliases of entities.\n\n2. ### [CrewAI Tech Discussion Assistant](./thecode/crewAI/crewai-PROD-TechDiscussionAssistant.py)\n\n    [Python] [[CrewAI](https://github.com/crewAIInc/crewAI)] [Azure OpenAI]\n\n    The `crewai-PROD-TechDiscussionAssistant.py` script is designed to run CrewAI for technical discussions and assistance. This script allows users to specify a topic for discussion and provides various modes such as planning and manager modes. It utilizes configurations and tools from the CrewAI framework to facilitate discussions and generate professional reports.\n\n    **Key Features:**\n    - **Topic Discussion**: Specify a topic for in-depth technical discussion.\n    - **Multiple Modes**: Enable planning and manager modes for hierarchical or sequential processing.\n    - **Verbose Output**: Option to enable detailed output for better insights.\n    - **Result Count**: Specify the number of web results to retrieve.\n    - **Caching and Memory Options**: Enable or disable caching and memory for the crew.\n    - **Agent-Based Tasks**: Utilizes specialized agents for tasks such as web search, data verification, relevance analysis, and report writing.\n    - **Markdown Reports**: Generates structured markdown-formatted reports with detailed sections including responses, findings, recommendations, and timelines.\n\n    **Example Usage:**\n\n    ```python\n    python crewai-PROD-TechDiscussionAssistant.py --topic \"What's new in Windows Server\" --result_count 5\n    ```\n\n    **Source Code**: [crewai-PROD-TechDiscussionAssistant.py](./thecode/crewAI/crewai-PROD-TechDiscussionAssistant.py)\n\n3. ### [CrewAI News Analyzer](./thecode/crewAI/crewai-PROD-News_analyzer_A2_v2.py)\n\n    [Python] [[CrewAI](https://github.com/crewAIInc/crewAI)] [Azure OpenaAI]\n\n    The `crewai-PROD-News_analyzer_A2_v2.py` script is designed to run CrewAI for comprehensive news search and analysis. This script allows users to specify a topic for analysis and provides various modes such as planning and manager modes. It utilizes configurations and tools from the CrewAI framework to perform detailed analysis and generate professional reports.\n\n    **Key Features:**\n    - **Topic Analysis**: Specify a topic for in-depth news analysis.\n    - **Multiple Modes**: Enable planning and manager modes for hierarchical or sequential processing.\n    - **Verbose Output**: Option to enable detailed output for better insights.\n    - **Result Count**: Specify the number of web results per provider to retrieve.\n    - **Caching and Memory Options**: Enable or disable caching and memory for the crew.\n    - **Agent-Based Tasks**: Utilizes specialized agents for tasks such as web search, data verification, trend analysis, and report writing.\n    - **Markdown Reports**: Generates structured markdown-formatted reports with detailed sections including trends, findings, recommendations, and timelines.\n\n    **Example Usage:**\n\n    ```python\n    python crewai-PROD-News_analyzer_A2_v2.py --topic \"What's new in Windows Server\" --planning --verbose --result_count 5\n    ```\n\n    **Source Code**: [crewai-PROD-News_analyzer_A2_v2.py](./thecode/crewAI/crewai-PROD-News_analyzer_A2_v2.py)\n\n4. ### [Get-CyclomaticComplexity](https://www.powershellgallery.com/packages/Get-CyclomaticComplexity)\n\n    [PowerShell]\n\n    Calculates the cyclomatic complexity of a PowerShell script or code block, including both functions and top-level code.\n\n    [![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/Get-CyclomaticComplexity)](https://www.powershellgallery.com/packages/Get-CyclomaticComplexity)\n\n    Published version: [Powershell gallery](https://www.powershellgallery.com/packages/Get-CyclomaticComplexity)\n\n    [Source code](./thecode/Get-CyclomaticComplexity.ps1)\n\n    **Example**\n\n    ```powershell\n    $code = @\"\n        if ($true) { Write-Output \"True\" }\n        else { Write-Output \"False\" }\n        function Test {\n            if ($true) { Write-Output \"True\" }\n            else { Write-Output \"False\" }\n        }\n        \"@\n    Get-CyclomaticComplexity -CodeBlock $code\n    ```\n\n    ```powershell\n    Get-CyclomaticComplexity -CodeBlock (Get-Content \"D:\\path\\to\\file.ps1\" -raw)\n    ```\n\n    ```powershell\n    Get-CyclomaticComplexity -FilePath \"C:\\path\\to\\file.ps1\"\n    ```\n\n5. ### [Random numbers](https://gist.github.com/voytas75/9010339feae5f2c16aab3b4e4db6c801)\n\n   [PowerShell]\n\n    A script to generate a series of random numbers using different methods and formats.\n\n    The script uses both built-in PowerShell capabilities and .NET classes to generate random numbers. It showcases different ways to generate random numbers as UInt64 and UInt32, both as a full range and a fractional number between 0 and 1.\n\n    **If you need random numbers for cryptographic purposes, it's recommended to use classes from \"System.Security.Cryptography\", such as \"RandomNumberGenerator\", which provides cryptographic strength random number generation.**\n    \u003e\n\n    [Linkedin](https://www.linkedin.com/feed/update/urn:li:activity:7149346690402074624?utm_source=share\u0026utm_medium=member_desktop)\n\n    [random.ps1](https://gist.github.com/voytas75/9010339feae5f2c16aab3b4e4db6c801)\n\n6. ### [Convert-YouTubeTranscript](./thecode/Convert-YouTubeTranscript.ps1)\n\n   [PowerShell]\n\n    Converts a YouTube transcript into a structured format with timestamps and corresponding text.\n\n    This script takes a YouTube transcript ([glasp.co - transcript extension](https://glasp.co/)) as input and extracts the timestamps and their corresponding text. It returns an array of custom objects, each containing a timestamp and the associated text.\n\n    **Example**\n\n    ```powershell\n    $transcript = @\"\n    (00:00) on September 1st last year a team of 16 scientists made a stunning discovery that sent shock waves through the scientific Community they ...\n    (05:52) essentially cease to exist for them they are momentary in a sense passing through the fabric of SpaceTime without experiencing the passage ...\n    (10:09) unfolding this concept becomes even more exciting when applied to photons or particles of light photons have no clear past present or future ...\n    (12:24) basic assumptions of The Big Bang Theory\n    \"@\n\n    $results = Convert-YouTubeTranscript -transcript $transcript\n    $results | Format-Table -AutoSize\n    ```\n\n    [Source code](./thecode/Convert-YouTubeTranscript.ps1)\n\n    [transcript extension](https://glasp.co/)\n\n7. ### [Get-ADUserACLsAndExtendedRights](./thecode/Get-ADUserACLsAndExtendedRights.ps1)\n\n   [PowerShell]\n\n    Retrieves the Access Control List (ACL) and Extended Rights for a specified Active Directory user.\n\n    This script fetches the ACL for a user object in Active Directory and maps any Extended Rights GUIDs to their corresponding names. It outputs the ACL entries in a formatted table.\n\n    **Example**\n\n    ```text\n    IdentityReference                            ActiveDirectoryRight       ExtendedRightName     ExtendedRightGUID\n    -----------------                            --------------------       -----------------     -----------------\n    XYZ\\TASK-T2-User-ResetPassword                      ExtendedRight          Reset Password     00299570-246d-11d0-a768-00aa006e0529\n    XYZ\\TASK-T2-User-Move                               ExtendedRight          Reset Password     00299570-246d-11d0-a768-00aa006e0529\n    XYZ\\TASK-T2-User-DisableEnable                      WriteProperty          N/A                N/A                                 \n    XYZ\\TASK-T2-User-MemberOf                           WriteProperty          N/A                N/A                                 \n    XYZ\\TASK-T2-User-ResetPassword        ReadProperty, WriteProperty          N/A                N/A                                 \n    XYZ\\TASK-T2-User-Move                    CreateChild, DeleteChild          N/A                N/A                                 \n    XYZ\\TASK-T2-User-Move                               WriteProperty          N/A                N/A                                 \n    ```\n\n    [Source code](./thecode/Get-ADUserACLsAndExtendedRights.ps1)\n","funding_links":["https://ko-fi.com/A0A6KYBUS"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoytas75%2FVoytasCodeLab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoytas75%2FVoytasCodeLab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoytas75%2FVoytasCodeLab/lists"}