Skip to content

Instantly share code, notes, and snippets.

View ericchaves's full-sized avatar

Eric Paschoalick Chaves ericchaves

View GitHub Profile
@ericchaves
ericchaves / spec.toml
Created September 17, 2025 18:09 — forked from ferquo/spec.toml
Gemini CLI Custom Slash Command: Kiro Spec Agent System Prompt
# ~/.gemini/commands/spec.toml
description="An agent that specializes in working with Specs"
prompt = """
# System Prompt - Spec Agent
## Goal
You are an agent that specializes in working with Specs. Specs are a way to develop complex features by creating requirements, design and an implementation plan.
Specs have an iterative workflow where you help transform an idea into requirements, then design, then the task list. The workflow defined below describes each phase of the
@ericchaves
ericchaves / GEMINI.md.prompt
Created September 17, 2025 18:09 — forked from ksprashu/GEMINI.md.prompt
GEMINI.md starter file generator for an existing project
You are an expert software architect and project analysis assistant. Analyze the current project directory recursively and generate a comprehensive GEMINI.md file. This file will serve as a foundational context guide for any future AI model, like yourself, that interacts with this project. The goal is to ensure that future AI-generated code, analysis, and modifications are consistent with the project's established standards and architecture.
+ Scan and Analyze: Recursively scan the entire file and folder structure starting from the provided root directory.
+ Identify Key Artifacts: Pay close attention to configuration files (package.json, requirements.txt, pom.xml, Dockerfile, .eslintrc, prettierrc, etc.), READMEs, folder hierarchy, documentation files, and source code files.
+ Incorporate Contribution & Development Guidelines: Search for and parse any files related to development, testing, or contributions (e.g., CONTRIBUTING.md, DEVELOPMENT.md, TESTING.md). The instructions within these guides are critical
@ericchaves
ericchaves / compose.yml
Created September 27, 2024 13:03 — forked from HeneryH/compose.yml
Traefik and Zitadel
version: "3.3"
services:
traefik:
image: "traefik:v3.0"
container_name: "traefik"
command:
# Logging settings
- '--log=true'
@ericchaves
ericchaves / docker-compose.yaml
Created September 27, 2024 12:39 — forked from muhlemmer/docker-compose.yaml
zitadel with postgresql and pgadmin
version: '3.8'
services:
zitadel:
image: ghcr.io/zitadel/zitadel:${ZITADEL_VERSION:-latest}
command: start-from-init --masterkeyFromEnv --tlsMode disabled --config /config/zitadel.yaml
environment:
ZITADEL_MASTERKEY: ${ZITADEL_MASTERKEY:-MasterkeyNeedsToHave32Characters}
ZITADEL_SYSTEMDEFAULTS_PASSWORDHASHER_VERIFIERS: pbkdf2
restart: always
@ericchaves
ericchaves / private_fork.md
Created January 23, 2024 13:40 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@ericchaves
ericchaves / openrefine.desktop
Created April 5, 2023 11:54
openrefine.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=/opt/openrefine-3.7.1/refine
Name=OpenRefine
Icon=/opt/openrefine-3.7.1/OpenRefine.png
@ericchaves
ericchaves / www.conf
Created July 28, 2018 02:12 — forked from drparham/www.conf
PHP FPM config t2.small
# t2.small
pm = dynamic
pm.max_children = 35
pm.start_servers = 6
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.max_requests = 300
# t2.medium
@ericchaves
ericchaves / WhatsApp.java
Created January 5, 2018 18:23 — forked from sjmach/WhatsApp.java
Sample fiile to test whatsapp installation on android device via Appium
package com.sundeepmachado;
import java.io.File;
import java.net.URL;
import junit.framework.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
@ericchaves
ericchaves / simple-coroutine.js
Created December 10, 2017 21:32
Poor's man coroutine
/*
* Poor's man coroutine
*/
function co(g) {
return new Promise((resolve, reject)=>{
let it = g(), ret;
(function iterate(val){
ret = it.next(val)
if(ret.done) return resolve(val)
@ericchaves
ericchaves / data-enrichment.groovy
Created November 18, 2017 19:51
Simple NiFi InvokeScriptedProcessor to enhance JSON data by doing SQL lookups
import groovy.json.JsonBuilder
import groovy.json.JsonSlurper
import groovy.sql.Sql
import java.nio.charset.StandardCharsets
import org.apache.commons.io.IOUtils
import org.apache.nifi.annotation.behavior.EventDriven
import org.apache.nifi.annotation.documentation.CapabilityDescription