- https://faun.pub/serverless-diary-how-to-increase-agility-with-feature-toggles-native-approach-e9695f67636f
- https://www.trek10.com/blog/kicking-the-tires-on-appconfig
- https://twitter.com/QuinnyPig/status/1458667547818016769
- https://github.com/terraform-aws-modules/terraform-aws-appconfig
- https://workshops.aws/?tag=AppConfig
- https://itnext.io/provisioning-freeform-configuration-via-aws-appconfig-cloudformation-faed56b9e9f4
- https://www.trek10.com/blog/preinvent-notes-developer-experience
- https://www.subskribe.com/blog/accelerating-development-with-feature-flags (nice java based example)
- https://github.com/aws-samples/aws-appconfig-java-sample (example with in-house caching)
This file contains 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
package fix | |
import scalafix.v1._ | |
import scala.meta._ | |
class RewriteToStructured extends SemanticRule("RewriteToStructured") { | |
override def fix(implicit doc: SemanticDocument): Patch = { | |
doc.tree.collect { | |
case [email protected](Term.Select(loggerName, methodName), List(Term.Interpolate(Term.Name("s"), parts, args))) if matchesType(loggerName) => |
This file contains 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
package com.example | |
import com.tersesystems.echopraxia.api.{Condition => JCondition, _} | |
import com.tersesystems.echopraxia.plusscala.{DefaultLoggerMethods, Logger} | |
import com.tersesystems.echopraxia.plusscala.api.{FieldBuilder, _} | |
import scala.jdk.FunctionConverters.enrichAsJavaFunction | |
case class Foo(name: String, age: Int) | |
case class Bar(name: String, age: Int) |
This file contains 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
--- | |
- name: Install Letta Server with Docker | |
hosts: all | |
become: true | |
vars: | |
letta_data_dir: /opt/letta/data | |
postgres_data_dir: /opt/letta/pgdata | |
postgres_password: "{{ lookup('community.general.onepassword', 'letta-postgres database', field='password', vault='will-connect-vault') }}" | |
anthropic_api_key: "{{ lookup('community.general.onepassword', 'Anthropic API Key', field='credential', vault='will-connect-vault') }}" | |
mistral_api_key: "{{ lookup('community.general.onepassword', 'Mistral API Key', field='credential', vault='will-connect-vault') }}" |
This file contains 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
--- | |
- hosts: all | |
become: true | |
vars: | |
postgres_version: "16" | |
postgres_password: "" | |
tasks: | |
- name: Install required packages | |
apt: | |
name: |
This file contains 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
--- | |
- name: Install Letta Server with Docker | |
hosts: all | |
become: true | |
vars: | |
letta_data_dir: /opt/letta/data | |
postgres_password: "" | |
anthropic_api_key: "" | |
mistral_api_key: "" | |
postgres_host: "" |
This file contains 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://docs.litellm.ai/docs/proxy/configs | |
# https://docs.litellm.ai/docs/proxy/quickstart | |
model_list: | |
# https://docs.lambdalabs.com/public-cloud/lambda-inference-api/#listing-models | |
- model_name: hermes3-70b | |
litellm_params: | |
model: openai/hermes3-70b | |
api_key: "os.environ/OPENAI_API_KEY" | |
api_base: "os.environ/OPENAI_API_BASE" |
When a user requests to create a Due app URL, follow these formatting rules:
- Basic URL Structure
- For adding reminders: Start with
due://x-callback-url/add?
- For searching: Start with
due:///search?
- All parameters must be connected with
&
symbols - All parameter values must be URL encoded (spaces become %20, special characters properly escaped)
- Add Reminder Parameters
Required format:
due://x-callback-url/add?
followed by one or more of these parameters:
This file contains 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
import requests | |
import os | |
def add_recipe_to_mealie_from_url(recipe_url: str, include_tags: bool=False): | |
""" | |
Adds a recipe to Mealie from a URL of a cooking website containing the recipe. | |
Use this function when you have found a recipe using Tavily and have the URL or the user has | |
shared a recipe URL. |
This file contains 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
import requests | |
import os | |
from urllib.parse import urljoin | |
def find_recipes_in_mealie( | |
searchTerm: str, | |
categories_csv: str = None, | |
tags_csv: str = None) -> str: | |
""" |