Shell: Generating Access Tokens for Bitbucket and Ansible Automation Platform
Description
This script contains functions to manage authentication for Bitbucket and Ansible Tower by checking the validity of existing access tokens, prompting for user credentials, and generating new access tokens if necessary.
[Read More]Shell: Streamlined Python-based Command Line Interface for OpenAI Chat
Description
This Python script serves as a command-line chat assistant powered by OpenAI’s gpt-3.5-turbo
model. Upon entering a question, the script submits it to OpenAI’s API, retrieves the model-generated response, and displays it in the terminal with syntax highlighting for any code blocks included in the answer. Furthermore, users have an option to save the given answer into a Markdown file for future reference. This script leverages libraries such as pygments
for syntax highlighting, termcolor
for terminal text coloring, and easygui
for easy GUI file dialog interactions.