Creating a Matrix bridge involves connecting the Matrix ecosystem with another chat service, enabling users to communicate across different platforms. In this guide, we'll develop a simple Matrix bridge using Python 3.12 and the Matrix Application Service (AppService) API with Synapse.
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
| [2012-07-25 22:16:55,351] [localhost-startStop-1] com.netflix.asgard.ConfigService Initializing... | |
| [2012-07-25 22:16:55,760] [localhost-startStop-1] com.netflix.asgard.InitService Initializing... | |
| [2012-07-25 22:16:55,776] [localhost-startStop-1] com.netflix.asgard.RegionService Initializing... | |
| [2012-07-25 22:16:58,035] [localhost-startStop-1] com.netflix.asgard.MonkeyPatcherService Initializing... | |
| [2012-07-25 22:16:58,427] [localhost-startStop-1] com.netflix.asgard.InitService Starting caches | |
| [2012-07-25 22:16:58,432] [localhost-startStop-1] com.netflix.asgard.SshService Initializing... | |
| [2012-07-25 22:16:58,433] [localhost-startStop-1] com.netflix.asgard.SecretService Initializing... | |
| [2012-07-25 22:16:58,437] [localhost-startStop-1] com.netflix.asgard.AwsClientService Initializing... | |
| [2012-07-25 22:16:58,562] [localhost-startStop-1] com.netflix.asgard.AwsSimpleDbService Initializing... | |
| [2012-07-25 22:16:58,803] [localhost-startStop-1] com.netflix.asgard.EmailerService Initializin |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| /** | |
| * Returns a Segment's KSUID. | |
| * | |
| * Reference implementation: https://github.com/segmentio/ksuid | |
| * Also read: https://segment.com/blog/a-brief-history-of-the-uuid/ | |
| */ | |
| create or replace function fn_ksuid() returns text as $$ | |
| declare | |
| v_time timestamp with time zone := null; | |
| v_seconds numeric := null; |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare [email protected]:usi-systems/easytrace.git
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
| # BAML (Basically, A Made-Up Language) Reference Guide for AI Agents | |
| <Overview> | |
| BAML is a domain-specific language for building type-safe LLM prompts as functions. It provides: | |
| - Strongly-typed inputs and outputs for LLM calls | |
| - Automatic JSON parsing and validation | |
| - Jinja-based prompt templating | |
| - Multi-language code generation (Python, TypeScript, Go, Ruby) | |
| The workflow is: Define BAML files → Run `baml-cli generate` → Import generated client in your code. |