Skip to content

Instantly share code, notes, and snippets.

View vndmtrx's full-sized avatar
💅
Fazendo vários nadas

Eduardo N.S.R. vndmtrx

💅
Fazendo vários nadas
View GitHub Profile
@vndmtrx
vndmtrx / contemplative-llms.txt
Created January 12, 2025 11:06 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@vndmtrx
vndmtrx / UUIDv7.java
Created September 21, 2024 12:28
Gerador de UUID versão 7 compatível com Java 22, Spring Boot Data JPA e Hibernate.
/*
* Copyright 2023 Eduardo Rolim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@vndmtrx
vndmtrx / dpkg_after.txt
Last active May 8, 2024 20:23
Debian Bookworm Reporting
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Nome Versão Arquitectura Descrição
+++-=======================================-====================================-============-================================================================================
ii accountsservice 22.08.8-6 amd64 query and manipulate user account information
ii acl 2.3.1-3 amd64 access control list - utilities
ii adduser 3.134 all add and remove users and groups
ii adwaita-icon-theme 43-1 all default icon theme of GNOME
ii aisleriot 1:3.22.
@vndmtrx
vndmtrx / content-use-license-nuvemlgbt-en.md
Last active June 20, 2023 14:03
Licença de Uso dos Conteúdos da NuvemLGBT / NuvemLGBT Content Use License

NuvemLGBT Content Use License

This license establishes the terms and conditions for the use of user-generated content on the NuvemLGBT platform. By using the NuvemLGBT platform, you agree to adhere to the terms stipulated in this license.

1. Definitions

  1. "NuvemLGBT", hereinafter referred to as INSTANCE, refers to the online platform, based on Mastodon, intended for the creation and sharing of content related to the members of this INSTANCE.

  2. "User" refers to any person who has access and uses the services of INSTANCE.

  3. "Content" refers to any and all material, such as texts, images, videos, audios and any other forms of expression created and made available by the user in INSTANCE.

@vndmtrx
vndmtrx / toot-in-pride-nuvemlgbt.css
Created June 2, 2023 17:40
Toot in Pride da instância Mastodon NuvemLGBT
.compose-form__publish-button-wrapper button,
.ui__header__links .button {
background-color: rgba(0, 0, 0, 0);
background-image: linear-gradient(
#E22016,
#F28917,
#EFE524,
#78B82A,
#2C58A4,
#6D2380,
/* ~/.config/gtk-3.0/gtk.css */
/* Lista plugins: xfconf-query -c xfce4-panel -p /plugins -lv */
/* Recarrega XFCE: xfce4-panel -r */
/* GTK Theming para o XFCE: https://docs.xfce.org/xfce/xfce4-panel/theming */
/* Tema para uso com o painel horizontal configurado para 48px de tamanho da linha */
#whiskermenu-button* {
-gtk-icon-transform: scale(0.50);
}
@vndmtrx
vndmtrx / Makefile
Created November 30, 2020 16:53
My Makefile for bootstrapping Python projects
SHELL := /bin/bash
.SHELLFLAGS = -e -c
.ONESHELL:
.PHONY: clean freeze
PRJ_NAME = Project Name
.venv: .venv/bin/activate
@vndmtrx
vndmtrx / subnet.py
Last active October 18, 2023 20:09
Python 3 simple subnet calculator
#!/usr/bin/env python3
# Use: ./subnet.py <ip/cidr>
# Alt: ./subnet.py <ip> <mask>
import sys
if __name__=="__main__":
addr = [0, 0, 0, 0]
mask = [0, 0, 0, 0]
cidr = 0
@vndmtrx
vndmtrx / cron_script.sh
Last active November 12, 2018 11:27
Script para execução de atividades no Cron, com controle de horas e bloqueio de múltiplas execuções. Rode com cron_script.sh <path da atividade>.
#!/usr/bin/env bash
## Script Modelo de execução de tarefas no cron
## Recomendação: Usar script na pasta /etc/cron.d/ em vez de usar cron de usuário (crontab -e)
## Recomendação: Usar rotação de logs (https://www.thegeekstuff.com/2010/07/logrotate-examples)
##################################################### Configuração ####################################################
#TODO: Criar /etc/logrotate.d/script
if [ $# -ne 1 ]; then
@vndmtrx
vndmtrx / gen-cert.sh
Created December 31, 2017 23:00
Servidor HTTPS em Python2/3 com TLS ativado, para fins de desenvolvimento
#!/usr/bin/env bash
openssl req -new -x509 -keyout certificado.pem -out certificado.pem -days 365 -nodes