NOTE: This information was obtained from https://python-poetry.org/docs/dependency-specification/
Since I'm constantly forgetting about this, I'm adding it here.
#!/usr/bin/env bash | |
declare -A profile_urls=( | |
[github]=https://github.com/froi | |
[blog]=https://froi.dev | |
[mastodon]=https://mastodon.social/@froi | |
[linked_in]=https://linkedin.com/in/froilanirizarry | |
) | |
for key in "${!profile_urls}[@]"; do |
#!/usr/bin/env sh | |
# You will need to get an API token to use this. | |
# Take a look at the Roadie docs: https://roadie.io/docs/integrations/codecoverage/ | |
entity="" | |
content_type="Content-Type:text/plain" | |
coverage_type="lcov" | |
coverage_file="./coverage_output/coverage.lcov" |
gh_org="Code4PuertoRico" | |
gh_team="code4pr-design" | |
gh api graphql -f query="query { | |
organization(login: $gh_org) { | |
team(slug: $gh_team) { | |
repositories(first:100) { | |
nodes { | |
nameWithOwner | |
isArchived |
import urllib.parse | |
encoded_url="" | |
decoded_url=urllib.parse.unquote(encoded_url) | |
print(f"URL has been decoded: {decoded_url}") |
.DEFAULT_GOAL := help | |
mypy: ## Run the MyPy type checker | |
@poetry run mypy src | |
ruff: ## Lint project using Ruff | |
@poetry run ruff check . | |
lint: mypy ruff | |
format: ## Format project using Ruff --fix | |
@poetry run ruff check --fix . |
NOTE: This information was obtained from https://python-poetry.org/docs/dependency-specification/
Since I'm constantly forgetting about this, I'm adding it here.
from pydantic import BaseSettings | |
class Settings(BaseSettings): | |
"""Setting / configuration class that inherits from Pydantic BaseSettings | |
This will first check for environment variables of the same name, if none are found | |
the default values are applied. | |
More info: https://pydantic-docs.helpmanual.io/usage/settings/ | |
""" |
❯ poetry install --only=main | |
Installing dependencies from lock file | |
Package operations: 20 installs, 0 updates, 0 removals | |
• Installing grpcio-tools (1.48.2): Failed | |
CalledProcessError | |
Command '['/Users/froi/Library/Caches/pypoetry/virtualenvs/projecte-5wzozpT2-py3.8/bin/python', '-m', 'pip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/Users/froi/Library/Caches/pypoetry/virtualenvs/projecte-5wzozpT2-py3.8', '--no-deps', '/Users/froi/Library/Caches/pypoetry/artifacts/4c/f1/a9/934e68c4bc7e032f327f4bc871af52e86a4f31a91e0e3b33ac131d84f7/grpcio-tools-1.48.2.tar.gz']' returned non-zero exit status 1. |
#!/usr/bin/env zsh | |
# These commands can be configured somewhat in ~/.cbtrc | |
# full docs at https://cloud.google.com/bigtable/docs/cbt-overview#create-cbtrc | |
instance="" | |
project_id="" | |
table_name="" | |
# Delete all rows in a table | |
cbt -instance ${instance} \ |