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
#!/bin/bash | |
# AI Chat Picker | |
# | |
# =========== # | |
# Description # | |
# =========== # | |
# | |
# This script allows the user to select an AI chat provider and enter a query, | |
# which is then opened in the selected provider's website. | |
# |
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
# /// script | |
# dependencies = [ | |
# "huggingface-hub", | |
# "inquirer", | |
# "requests", | |
# "tqdm", | |
# "typer" | |
# ] | |
# /// |
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 __future__ import annotations | |
import inspect | |
from functools import wraps | |
from typing import List, Optional, Type | |
from sqlalchemy.ext.asyncio import create_async_engine | |
from sqlmodel import Session, SQLModel, create_engine, select | |
from sqlmodel.ext.asyncio.session import AsyncSession |
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
db-name=database | |
path-to-db=./data | |
db-ext=sqlite | |
output-directory=./docs/diagrams | |
output-file=diagram.png | |
db-diagram: | |
schemaspy -dp /usr/share/java/sqlite-jdbc/ \ | |
-t sqlite-xerial \ | |
-cat ${db-name} -s ${db-name} -db ${path-to-db}/${db-name}.${db-ext} \ | |
-sso -o /tmp/schemaspy/ && \ |
This file has been truncated, but you can view the full file.
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
<?xml version='1.0' encoding='UTF-8'?> | |
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd"> | |
<meta lastmodifieddate="2023-03-05"> | |
<creator>Gephi 0.10.1</creator> | |
<title></title> | |
<description></description> | |
</meta> | |
<graph defaultedgetype="undirected" mode="static"> | |
<attributes class="node" mode="static"> | |
<attribute id="d4" title="url" type="string"/> |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd"> | |
<meta lastmodifieddate="2023-02-15"> | |
<creator>Gephi 0.10.1</creator> | |
<title></title> | |
<description></description> | |
</meta> | |
<graph defaultedgetype="undirected" mode="static"> | |
<attributes class="node" mode="static"> | |
<attribute id="d4" title="url" type="string"/> |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd"> | |
<meta lastmodifieddate="2023-02-15"> | |
<creator>Gephi 0.10.1</creator> | |
<title></title> | |
<description></description> | |
</meta> | |
<graph defaultedgetype="undirected" mode="static"> | |
<attributes class="node" mode="static"> | |
<attribute id="d4" title="url" type="string"/> |