Skip to content

Instantly share code, notes, and snippets.

View DanielSRS's full-sized avatar
🕵️‍♂️
Learning new stuff

Daniel Santa Rosa DanielSRS

🕵️‍♂️
Learning new stuff
View GitHub Profile
@DanielSRS
DanielSRS / updater.sh
Created September 2, 2026 14:28
extensão I
#!/bin/bash
# Verifica se está rodando como root
if [ "$EUID" -ne 0 ]; then
echo "Por favor, execute este script como root (sudo ./setup_agente.sh)"
exit
fi
echo "Iniciando instalação do Agente IoT..."
@DanielSRS
DanielSRS / index.html
Created August 25, 2026 23:23
Roadmap do projeto de extensão I
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard do Projeto</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
@DanielSRS
DanielSRS / dsrs-react-native-conventions.md
Created April 23, 2026 00:37
Convenções de organização, ferramentas, arquitetura, bibliotecas e outras coisas para desenvolvimento react native

Tecnologias e Bibliotecas

Core

  • Expo
    • @expo/ui – UI nativa
    • expo-router – Navegação baseada em arquivos, com suporte web
    • expo-updates – Atualizações OTA configuradas
    • expo-build – Configuração de build
  • expo-dev-client – Cliente de desenvolvimento customizado
@DanielSRS
DanielSRS / .clangd
Created March 26, 2026 02:17
clangd configuration for win32 app development
CompileFlags:
Add:
# MSVC-compatible front-end flags for clang on Windows.
- -fms-compatibility
- -fms-extensions
- -fdelayed-template-parsing
# MSVC toolset headers (check C:\Program Files\Microsoft Visual Studio\2022\<Edition>\VC\Tools\MSVC for your version).
- -isystem
- 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include'
@DanielSRS
DanielSRS / zed.settings.json
Created November 25, 2025 01:21
My zed editor settings file
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"agent": {
@DanielSRS
DanielSRS / test.tsx
Created August 1, 2025 16:37
Experimenting rendering large element trees
import {
FlatList,
Text,
View,
type LayoutRectangle,
type ListRenderItemInfo,
} from 'react-native';
/**
* Importing an arbitrary JSON file to test rendering.
*/
@DanielSRS
DanielSRS / typescript_bundler.ts
Created April 20, 2025 03:40
Bundle a set of typescript files into a single one without modifying the source code
import ts from "typescript";
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const SKIP_THIRD_PARTY_MODULES = true;
const __dirname = path.dirname(fileURLToPath(import.meta.url));
/**
* Get the module path based on the base directory.