Skip to content

Instantly share code, notes, and snippets.

View goncalossilva's full-sized avatar
🎄
I may be slow to respond.

Gonçalo Silva goncalossilva

🎄
I may be slow to respond.
View GitHub Profile

The Inspiration: Miranda Priestly

Before diving into technical challenges, it's worth sharing what inspired Ramble. We were deeply influenced by this scene from The Devil Wears Prada where Miranda dumps a dozen tasks on her assistant in one fell swoop. Non-stop, stream-of-consciousness. We asked ourselves: what if anyone could capture tasks that way? No typing, no careful formatting. Just speak your mind and let AI do the organizing.

We even tested our early prototypes using Miranda's exact monologue, playing the clip into a microphone. It became our north star use case.

Challenges

1. Real-time streaming with tool execution

blueprint:
name: Remote Command from Button
description: >
Triggers a remote.send_command when an input_button is pressed.
Perfect for controlling stateless devices like IR/RF remotes via a dashboard button.
domain: automation
input:
trigger_button:
name: Trigger Button
description: The input_button that will trigger the command.
blueprint:
name: Sync Multiple Switches
description: Sync the On/Off state of multiple switches
domain: automation
input:
switch:
name: Switches to Control
selector:
entity:
multiple: true
<?xml version="1.0" encoding="UTF-8"?>
<SYSTEM>
<GPU DevID="73BF" RevID="C0">
<PPW Value="1"/>
<FEATURE ID="100" Enabled="0">
<STATES>
<STATE ID="0" Enabled="False" Value="0"/>
</STATES>
</FEATURE>
<FEATURE ID="101" Enabled="5">
@goncalossilva
goncalossilva / marika.bu
Last active January 12, 2025 17:48
Butane file for a basic Fedora CoreOS + Portainer installation
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-rsa ...
storage:
disks:
- device: /dev/disk/by-id/coreos-boot-disk
@goncalossilva
goncalossilva / han_sagecom_cx1000-6s.txt
Created April 10, 2023 22:53
Modbus script for SAGEM CX1000-6S
>D
>BS
smlj=0
tper=60
=>sensor53 r
>S
@goncalossilva
goncalossilva / sentence-transformers-search.py
Created February 2, 2023 10:25
sentence-transformers-search.py
import json
from sentence_transformers import SentenceTransformer, CrossEncoder, util
from string import punctuation
import gzip
import os
import sys
import re
import torch
def index_markdown_files(dir_path):
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: Electron [38612]
Path: /Users/USER/*/Electron.app/Contents/MacOS/Electron
Identifier: com.github.Electron
Version: 16.0.6 (16.0.6)
Code Type: ARM-64 (Native)
Parent Process: Exited process [38611]
@goncalossilva
goncalossilva / UUID.kt
Created December 15, 2021 02:58
Kotlin Multiplatform implementation of UUID version 4.
import kotlin.random.Random
import kotlin.random.nextUBytes
@Suppress("UnnecessaryAbstractClass", "MagicNumber", "ComplexCondition")
abstract class UUID private constructor(private val random: Random = Random.Default) {
constructor(seed: Int) : this(Random(seed))
/**
* From [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122), the UUID string
* representation follows the structure:
Goals
- Excellent performance
- Small library sizes
- Unbloated feature set
- OSS first and foremost
---
- On/off
- Percentage rollouts (X% true, Y% false)