Portr: open-source self-hosted tunnel designed for teamsPortr is an open-source, self-hosted tunnel designed for teams. It lets you expose your local http/tcp connections to the public internet. It uses SSH remote port forwarding under the hood to tunnel connections. https://github.com/amalshaji/portr F...Mar 31, 2024 · 1 min readexp.amal.sh
Generating migrations for gorm with AtlasFor those unfamiliar with gorm, it is the most popular orm for Go, which lets you define Go structs and work with SQL databases(sqlite, PG, MySQL etc.). Here is an example, type User struct { gorm.Model Name string } db.First(&user, "10") //...Sep 18, 2023 · 3 min readexp.amal.sh
Replacing fastapi's default api docs with elementsBy default, fastapi comes with swagger for API testing and redoc for API documentation. Let's replace them with elements, a pretty API documentation tool. Turn off the defaults Turn off the default documentation by setting it to None app = FastAPI( ...Sep 8, 2023 · 1 min readexp.amal.sh
Changing the default clickhouse server response format to JSONThe clickhouse http interface uses TSV(tab separated) as the default response format. CREATE TABLE users (uid Int16, name String, age Int16) ENGINE=Memory; INSERT INTO users VALUES (1231, 'John', 33); INSERT INTO users VALUES (6666, 'Ksenia', 48); I...Jul 16, 2023 · 1 min readexp.amal.sh
ActionAI: Call local functions using OpenAI function callingActionAI is a small wrapper around Openai's function calling. It works by auto-generating json schemas for your Python functions. Repo https://github.com/amalshaji/actionai Usage Install the package, pip install actionai Now define a new function,...Jul 12, 2023 · 2 min readexp.amal.sh