Skip to content

Instantly share code, notes, and snippets.

View zasource-dev's full-sized avatar
🏠
Working from home

@zasource-dev zasource-dev

🏠
Working from home
View GitHub Profile
@zasource-dev
zasource-dev / update-deps.md
Created January 29, 2026 18:28 — forked from ChristianAlexander/update-deps.md
Update Elixir Dependencies Skill

Update Elixir Dependencies

Update all outdated dependencies in this Elixir project, handling both safe updates and breaking changes.

Workflow

1. Identify Outdated Dependencies

Run mix hex.outdated to get a list of all outdated dependencies. Parse the output to identify:

  • Safe updates: Dependencies where only the patch or minor version has changed (no major version bump)

LiveView Forms

Application.put_env(:sample, Example.Endpoint,
  http: [ip: {127, 0, 0, 1}, port: 5001],
  server: true,
  live_view: [signing_salt: "aaaaaaaa"],
  secret_key_base: String.duplicate("a", 64)
)
Mix.install(
[
{:phoenix_playground, "~> 0.1.0"},
{:openai, "~> 0.6.1"},
{:makeup, "~> 1.1.2"},
{:makeup_elixir, "~> 0.14"}
],
config: [
openai: [
api_key: System.get_env("OPENAI_API_KEY"),
@zasource-dev
zasource-dev / elixir_za.livmd
Created July 27, 2024 13:07 — forked from cigrainger/elixir_za.livmd
Elixir ZA: Boost your data team's productivity with Explorer
# Elixir ZA: Boost your data team's productivity with Explorer
```elixir
Mix.install(
[
{:explorer, "~> 0.8.3"},
{:kino, "~> 0.13.2"},
{:kino_vega_lite, "~> 0.1.13"},
{:kino_explorer, "~> 0.1.20"},
{:adbc, "~> 0.6.0"},
Mix.install(
[
{:phoenix_playground, "~> 0.1.0"},
{:openai, "~> 0.6.1"}
],
config: [
openai: [
api_key: System.get_env("OPENAI_API_KEY"),
organization_key: System.get_env("OPENAI_ORGANIZATION_KEY")
]
@zasource-dev
zasource-dev / simple_s3_upload.ex
Created March 23, 2024 12:19 — forked from plicjo/simple_s3_upload.ex
LiveView Uploads to S3
defmodule SimpleS3Upload do
@moduledoc """
Dependency-free S3 Form Upload using HTTP POST sigv4
https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html
"""
@doc """
Signs a form upload.
The configuration is a map which must contain the following keys:
* `:region` - The AWS region, such as "us-east-1"