Skip to content

Instantly share code, notes, and snippets.

@flavio-fernandes
flavio-fernandes / kelsey_zero_token_architecture_pt_BR.md
Created July 20, 2026 10:38
Arquitetura de Zero Tokens -- Kelsey Hightower

Arquitetura de Zero Tokens -- Kelsey Hightower

Vídeo: https://youtu.be/A7WFt2JQ5sg?si=Csa-q4fdiAW-MmLL

Observação: Tradução para português brasileiro, com pequenos ajustes em erros evidentes da transcrição automática. Os timestamps foram preservados de forma aproximada.


Palestra

@flavio-fernandes
flavio-fernandes / gist:500d93106cf8cf11dbf188080592b963
Created July 17, 2026 02:54
The Diary Of A CEO: Daniel Kokotajlo
He Risked Everything To Warn You: No One Is Ready For What's Coming, And The AI Companies Know It!
https://youtu.be/_g4l7YkDQwA?si=0PQmJ9TCNu6IpbYp
Ex-OpenAI researcher Daniel Kokotajlo walked away from $2 million rather than stay silent, and now reveals why he believes there's a 70% chance AI leads to human extinction, why superintelligence could arrive before the end of the decade, and the one plan he thinks could still save us all!
Daniel Kokotajlo is a former OpenAI researcher and one of the world's leading AI forecasters. He is the founder of the AI Futures Project and the lead author of 'AI 2027,’ the widely-read scenario mapping the trajectory of artificial intelligence. His follow-up, 'AI 2040: Plan A,’ sets out how the world could still navigate superintelligence safely.
He explains:
■ What he saw inside OpenAI that made him walk away
@flavio-fernandes
flavio-fernandes / openclaw-50-day-prompts.md
Created March 11, 2026 14:55 — forked from velvet-shark/openclaw-50-day-prompts.md
OpenClaw after 50 days: all prompts for 20 real workflows (companion to YouTube video)

OpenClaw after 50 days: all prompts

Companion prompts for the video: OpenClaw after 50 days: 20 real workflows (honest review)

These are the actual prompts I use for each use case shown in the video. Copy-paste them into your agent and adjust for your setup. Most will work as-is or the agent will ask you clarifying questions.

Each prompt describes the intent clearly enough that the agent can figure out the implementation details. You don't need to hand-hold it through every step.

My setup: OpenClaw running on a VPS, Discord as primary interface (separate channels per workflow), Obsidian for notes (markdown-first), Coolify for self-hosted services.

@flavio-fernandes
flavio-fernandes / onvis_hs2_buttons
Last active May 15, 2026 13:34
Use all 5 buttons (single, double and long press) of an Onvis HS2 Smart Button
blueprint:
name: Onvis HS2 5 Button Actiond Dispatcher
description: >
Use all 5 buttons (single, double and long press) of an Onvis HS2 Smart
Button that is paired via HomeKit Controller. Works regardless of Thread
or Bluetooth. You configure the actions for each press type.
domain: automation
input:
onvis_smartswitch:
name: Onvis HS2 device
England winter experience with scenic trails, fresh snow, and a cozy lodge vibe. Here are a few great options for a day trip:
1. Waterville Valley, NH
Why?: Beautiful trails, good snow coverage, and a friendly rental shop.
Drive Time: ~2 hours from Boston.
Rental & Trails: Waterville Valley Adventure Center offers snowshoe rentals and well-marked trails through the White Mountain National Forest.
Bonus: A small village area with shops, cafés, and a warm après-snowshoeing atmosphere.
2. North Conway, NH (Great Glen Trails)
install docker, kind, golang, helm
# clone this repo
git clone https://github.com/ovn-org/ovn-kubernetes.git && cd ovn-kubernetes
# create a cluster, with 1 controller and 1 worker node
cat <<EOT > kind.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
@flavio-fernandes
flavio-fernandes / code.py
Created August 7, 2023 03:15
scooter noise box
# SPDX-FileCopyrightText: 2022 John Park for Adafruit Industries
# SPDX-License-Identifier: MIT
# Adapted by Flaviof for some extra functionality
# Convert files to appropriate WAV format (mono, 22050 Hz, 16-bit signed)
import asyncio
import time
import board
import keypad
@flavio-fernandes
flavio-fernandes / hack_kindly.patch
Created August 3, 2023 00:49
hacks to kind cluster to allow really big dbs
diff --git a/dist/images/ovndb-raft-functions.sh b/dist/images/ovndb-raft-functions.sh
index ceb523cfe..99ed10d37 100644
--- a/dist/images/ovndb-raft-functions.sh
+++ b/dist/images/ovndb-raft-functions.sh
@@ -114,7 +114,8 @@ check_and_apply_ovnkube_db_ep() {
# times and then give up.
for ip in ${ips[@]}; do
- wait_for_event attempts=10 check_ovnkube_db_ep ${ip} ${port}
+ echo wait_for_event attempts=9999999 check_ovnkube_db_ep ${ip} ${port}
@flavio-fernandes
flavio-fernandes / change.patch
Created March 14, 2022 20:14
checking for no valid nexthops
diff --git a/go-controller/pkg/ovn/egressip.go b/go-controller/pkg/ovn/egressip.go
index 5d524a8a3..262c00522 100644
--- a/go-controller/pkg/ovn/egressip.go
+++ b/go-controller/pkg/ovn/egressip.go
@@ -1148,13 +1148,21 @@ func (oc *Controller) syncStaleEgressReroutePolicy(egressIPCache map[string]egre
return true
}
// Check for stale nexthops that may exist in the logical router policy and store that in logicalRouterPolicyStaleNexthops
+ onlyStaleNextHops := true
staleNextHops := sets.NewString()