Skip to content

Instantly share code, notes, and snippets.

View fredguth's full-sized avatar

Fred Guth fredguth

  • Brasília, DF, Brazil
View GitHub Profile
@fredguth
fredguth / solveish_v3.ipynb
Created November 20, 2025 15:59
solveish_v3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fredguth
fredguth / using_promptbuddy.livemd
Last active November 8, 2025 16:24
Using prompt buddy

Using PromptBuddy

Mix.install([
  {:kino_promptbuddy, github: "fredguth/kino_promptbuddy"},
  {:kino, "~>0.17.0"},
])
@fredguth
fredguth / prompt_buddy.livemd
Last active November 8, 2025 16:04
Prompt Buddy from scratch

Prompt Buddy

Mix.install([
  {:kino, "~> 0.17.0"},
  {:kino_progress_bar, github: "acalejos/kino_progress_bar"},
  {:req_llm, "~> 1.0"}
])
@fredguth
fredguth / patch_in_elixir.livemd
Last active November 8, 2025 13:17
Patch in elixir

Building a Patch System for Elixir Livebook

Mix.install([
  {:kino, "~> 0.17.0"}
])

Run in Livebook

Motivation

@fredguth
fredguth / gist:0f545c97d4d6445ddbe3fcaeff0b31d6
Created November 3, 2025 11:25
clear ghost notification
gh auth login
gh api -X PUT /notifications -H "X-GitHub-Api-Version: 2022-11-28"
@fredguth
fredguth / cuda_install.md
Last active December 18, 2023 21:05 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@fredguth
fredguth / registro_igreja_alema.pdf
Last active September 14, 2023 12:23
Familien-stammburch Guth
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fredguth
fredguth / knapsack_breadth_first_search
Created July 13, 2023 20:33 — forked from pedrohbtp/knapsack_breadth_first_search
implementation of knapsack problem exploring the state space in a breadth first search manner and using memoization to reduce the exploration space
@fredguth
fredguth / icpbrasil.txt
Created October 27, 2019 20:38
Resolvendo alerta de sites não confiáveis nos sites do governo brasileiro
É uma vergonha, mas o ICP-Brazilv5 foi lançado em 2016 e até hoje um Chrome ou Safari atualizado ainda não reconhece a cadeira de certficação brasileira.
No site do ITI, há uma explicação para quem tem Windows.
Para quem tem Mac, aqui a solução:
1) Baixar os certificados raiz do ICP Brasil em: http://acraiz.icpbrasil.gov.br/repositorio/v1_v2_v5_v8_v9_goochr.p7b
2) Após baixar, clique duplo para instalar.
3) No software Keys (Acesso às chaves), encontre os certificados de Autoridade Certificadora Raiz Brasileira e, em cada um deles, dê um clique duplo
4) abra a aba "Confiança" e altere "Ao usar este certificado" para "Confiar sempre"
## login
get address in terminal and open in browser
## source lists
rm /etc/apt/sources.list.d/pve-enterprise.list
root@pve:/etc/apt/sources.list.d# nano pve-no-subscription.list
---------------------
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
/etc/apt/sources.list