Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
icu4c@77
If you've installed Cairo via Homebrew (brew install cairo) but your scripts still can't find it, you may need to create symlinks in /usr/local/lib. This is because /usr/local/lib is always searched by macOS and is not blocked by SIP (System Integrity Protection).
- Create the directory if it doesn't exist:
sudo mkdir -p /usr/local/lib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://github.com/inveniosoftware/invenio-communities/pull/1086/files#diff-6c07ffce9d2dd97c912da89fd4869787bdb49626a3fa278d466117cc8e489941 | |
| # Simplifying the function | |
| def filter_dict_keys(src, keys): | |
| """Filter a dictionary based on a list of key paths.""" | |
| # Split the keys into top-level and nested keys | |
| top_level_keys = [key for key in keys if "." not in key] | |
| nested_keys = [key for key in keys if "." in key] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.youtube.com/watch?v=6ye4lP9EA2Y | |
| version: '3' | |
| services: | |
| postgresql: | |
| image: postgres:16 | |
| environment: | |
| - POSTGRES_USER=keycloak | |
| - POSTGRES_DB=keycloak | |
| - POSTGRES_PASSWORD=SUPERsecret | |
| volumes: |
Quick way to see if you did something wrong:
# list your docker compose
docker compose config
# list all images used
docker compose config --images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get motherboard model | |
| Get-WmiObject win32_baseboard | Select-Object -Property Product | |
| # Get the maximun capacity of the MB RAM in GB | |
| Get-WmiObject -Class Win32_PhysicalMemoryArray | Select-Object -Property @{Name="MaxCapacityGB";Expression={$_.MaxCapacity / 1MB}} | |
| # Get the current RAM installed | |
| Get-WmiObject -Class Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum | Select-Object @{Name="TotalGB"; Expression={ $_.Sum / 1GB }} | |
| # Get list of connected storage devices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from langchain.chat_models import ChatOpenAI | |
| from langchain.prompts import ChatPromptTemplate | |
| from langchain.schema.output_parser import StrOutputParser | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from langchain.schema.runnable import RunnablePassthrough, RunnableLambda | |
| from langchain.utilities import DuckDuckGoSearchAPIWrapper | |
| import json | |
| RESULTS_PER_QUESTION = 3 |
NewerOlder