Quick way to see if you did something wrong:
# list your docker compose
docker compose config
# list all images used
docker compose config --images
# 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] |
# 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
# 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 |
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 |
After a Windows reset, certain folders may retain permissions from non-existing accounts, leading to "Permission denied" errors. This Gist provides commands to take ownership, grant full permissions, and remove a specific folder on drive to resolve the issue.
# Take ownership and grant full permissions
takeown /F D:\Foldername p /R /A
icacls D:\Foldername /grant "YourUserName":(F) /T
# Remove the folder and its contents
sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev checkinstall libncursesw5-dev libgdbm-dev libc6-dev
curl https://pyenv.run | bash # https://github.com/pyenv/pyenv#automatic-installer