{"id":19091940,"url":"https://github.com/matheusafonseca/scripts","last_synced_at":"2025-10-29T21:17:22.736Z","repository":{"id":253328052,"uuid":"842232841","full_name":"matheusAFONSECA/scripts","owner":"matheusAFONSECA","description":"Repository created to make scripts in bash and powershell to automate repetitive commands or simple tasks.","archived":false,"fork":false,"pushed_at":"2024-10-01T13:45:16.000Z","size":5404,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T07:31:41.772Z","etag":null,"topics":["bash","ps1","shell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/matheusAFONSECA.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-08-14T00:05:13.000Z","updated_at":"2024-10-30T15:04:33.000Z","dependencies_parsed_at":"2024-09-17T04:02:06.894Z","dependency_job_id":"ddbc568d-ad62-4db7-a3bb-771c07c987e9","html_url":"https://github.com/matheusAFONSECA/scripts","commit_stats":null,"previous_names":["matheusafonseca/scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matheusAFONSECA/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheusAFONSECA","download_url":"https://codeload.github.com/matheusAFONSECA/scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusAFONSECA%2Fscripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281699555,"owners_count":26546344,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bash","ps1","shell"],"created_at":"2024-11-09T03:17:36.082Z","updated_at":"2025-10-29T21:17:22.705Z","avatar_url":"https://github.com/matheusAFONSECA.png","language":"PowerShell","readme":"# Scripts\nRepository created to make scripts in bash and powershell to automate repetitive commands or simple tasks.\n\n## Table of Contents\n- [Overview](#overview)\n- [Git](#git)\n    - [Copyright](#copyright)\n    - [Commit](#commit)\n- [Images](#images)\n    - [Rename and format image types](#rename-and-format-image-types)\n- [Python](#python)\n    - [Create and Activate Virtual Environment](#create-and-activate-virtual-environment)\n\n## Overview\nThis repository contains various Bash and Shell scripts designed to automate repetitive tasks. It is organized into different folders, each dedicated to specific types of tasks or programming languages.\n\n## Git\n\nThe `Git` section includes scripts that automate key tasks related to Git operations.\n\n### Copyright\n\nThis script automates the process of adding copyright information to your code files (YAML, python, jenkinsfile, dockerS). It scans the files and inserts the appropriate copyright header, ensuring that your code is properly attributed and protected.\n\nTo run the script that make this task you can use this command:\n\n- **Windows:**\n```shell\n.\\Git\\git_copyright.ps1\n```\n\n- **Linux and macOS:**\n```bash\n./Git/git_copyright.sh\n```\n\n### Commit\n\nThe commit script simplifies the process of committing changes to your Git repository. It allows you to automate the commit process by specifying files to include in the commit and uses a `message.txt` file where you can write the commit message. This helps maintain a consistent and organized history of changes in your repository.\n\nTo run the script that make this task you can use this command:\n\n- **Windows:**\n```shell\n.\\Git\\git_commit.ps1\n```\n\n- **Linux and macOS:**\n```bash\n./Git/git_commit.sh\n```\n\n`remember:` if you want to make this script executable, you need to use the command `git config --global core.editor \"nano\"` to make it possible to edit, save and send the message wroted.\n\n## Images\nThe `Images` directory is dedicated to storing scripts related to image processing tasks. \n\n### Rename and format image types\nThis includes scripts for converting image formats to `.png` and renaming files according to a predefined pattern. The scripts are designed to be flexible, allowing you to specify the folder where the images are stored and the output format.\n\nTo run the script that make this task you can use this command:\n\n- **Windows:**\n```shell\n.\\images\\rename_and_format_type_images.ps1\n```\n\n- **Linux and macOS:**\n```bash\n./images/rename_and_format_type_images.sh\n```\n\n`remember:` if you want to make this script executable, you need to use the command `chmod +x \u003cfile_name.sh\u003e` to make it possible to run.\n\n\n## Python\n\nThe `Python` section includes scripts that automate key tasks related to Python operations.\n\n### Create and Activate Virtual Environment\n\nThis script automates the process of creating and activating a virtual environment for Python projects. The virtual environment helps manage dependencies and isolate project-specific packages. If the virtual environment is already created, a warning is showed and the venv is activate.\n\nTo run the script, use the following command based on your operating system:\n\n- **Windows:**\n```shell\n.\\Python\\create_and_activate_venv.ps1\n```\n\n- **Linux and macOS:**\n```bash\n./Python/create_and_activate_venv.sh\n```\n\n### Updating and Creating Requirements\n\nThis script automates the process of creating and updating a `requirements.txt` file for Python projects. The `requirements.txt` file is essential for running a Python project as it lists the specific versions of libraries used to build and run the project. Python libraries can undergo significant changes with each update, and functions or methods may be removed in newer versions, potentially breaking a project if different versions are used.\n\nTo run the script, use the appropriate command for your operating system:\n\n- **Windows:**\n  ```shell\n  .\\Python\\update_and_create_requirements.ps1\n  ```\n\n- **Linux and macOS:**\n  ```bash\n  ./Python/update_and_create_requirements.sh\n  ```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusafonseca%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusafonseca%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusafonseca%2Fscripts/lists"}