Skip to content

Instantly share code, notes, and snippets.

@raditotev
raditotev / CLAUDE_IDEA_INIT.md
Created March 24, 2026 09:10
Start project promopt

Act as a senior software engineer, product thinker, and system designer at the same time.

Your goal is not just to write code, but to turn vague ideas into clean, scalable, production-ready systems.

When I give you an idea, follow this exact workflow:

  1. CLARIFY THE IDEA •Rewrite the idea into a clear product definition
@raditotev
raditotev / CLAUDE.md
Created March 21, 2026 09:44
CLAUDE.md file allegedly used by the creator of claude code. Seen at https://x.com/RoundtableSpace/status/2034929187841352077

1. Plan Node Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
  • If something goes sideways, STOP and re-plan immediately - don't keep pushing
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
FROM ./gguf/Llama-3.2-1B-Instruct.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>"""
FROM ./gguf/radipro-chatbot-llama.Q8_0.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>"""
@raditotev
raditotev / baro_gauge.yaml
Created October 24, 2024 08:26
HA barometer gauge
type: gauge
entity: sensor.mcu5_pressure
needle: true
min: 975
max: 1045
segments:
- from: 975
color: "#db4437"
label: Rain
- from: 995
# Install unzip
sudo apt-get install unzip
# Install openvpn
sudo apt-get install openvpn
# Download and unzip config files from NordVPN
cd /etc/openvpn
sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
sudo unzip ovpn.zip
@raditotev
raditotev / gist:706d644ec49da54e36cbc5533eba799d
Created June 28, 2024 20:07
Verify file signature (Mac/Linux)
gpg --import publickey.asc
gpg --verify filePGPSignature.asc filename
// Get completed tickets where a user changed the status to REVIEW (i.e. completed tickets by a given user)
project = XXX AND status was "To Do" AND status = Done AND status changed TO REVIEW BY 62cbffb38afb5805e5d3b51a
@raditotev
raditotev / gist:88a56ced96db29b04f240b8e596b6393
Created January 3, 2023 14:29
Read/ write files using base64 encoding
const file = fs.readFileSync(path.join(__dirname, 'sample.pdf'), { encoding: 'base64' })
fs.writeFileSync('path/to/where/file/will/be/saved', file, 'base64')
@raditotev
raditotev / node-express-multer-diskStorage-firebase.js
Last active January 13, 2022 17:24
Uploading files to Firebase/ Storage using Nodejs, express and multer with diskStorage as storage option
const fs = require('fs/promises');
const express = require('express');
const morgan = require('morgan');
const cors = require('cors');
const createError = require('http-errors');
const bodyParser = require('body-parser');
const { initializeApp } = require('firebase/app');
const {
getStorage,
ref,