Skip to content

Instantly share code, notes, and snippets.

View ericchaves's full-sized avatar

Eric Paschoalick Chaves ericchaves

View GitHub Profile
@ksprashu
ksprashu / GEMINI.md.prompt
Last active October 5, 2025 03:50
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
@HeneryH
HeneryH / compose.yml
Last active November 5, 2024 07:37
Traefik and Zitadel
version: "3.3"
services:
traefik:
image: "traefik:v3.0"
container_name: "traefik"
command:
# Logging settings
- '--log=true'
@muhlemmer
muhlemmer / docker-compose.yaml
Created October 13, 2023 11:34
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
@DoktorMike
DoktorMike / videoconversionsamples.sh
Last active July 20, 2025 03:58
Useful commands for converting videos using ffmpeg
#!/bin/bash
# Examples taken from https://opensource.com/article/17/6/ffmpeg-convert-media-file-formats
# Convert a webm file to a matroska format with a vp9 encoding and keeping the same audio encoding.
# Also changes the bitrate to 1Mb/s
ffmpeg -i input.webm -c:a copy -c:v vp9 -b:v 1M output.mkv
# Same but change the frame rate to 30 FPS and dropping the bitrate conversion
ffmpeg -i input.webm -c:a copy -c:v vp9 -r 30 output.mkv
# Same but only setting the video size to a predetermined format HD 720 in this case
@virgilwashere
virgilwashere / _Mautic_nginx_config_files.md
Last active April 18, 2025 12:40 — forked from magnetikonline/README.md
Mautic nginx config files
@drorm
drorm / schemaspy.cfg
Last active July 10, 2024 21:53
schemaspy for redshift
# type of database. Run with -dbhelp for details
schemaspy.t=redshift
# optional path to alternative jdbc drivers.
schemaspy.dp=./RedshiftJDBC42-1.2.7.1003.jar
# database properties: host, port number, name user, password
schemaspy.host=xxxxx.yyyy.eu-west-1.redshift.amazonaws.com
schemaspy.port=5439
schemaspy.db=test
schemaspy.u=test
schemaspy.p=***************
@ijokarumawak
ijokarumawak / read-flowfile-contents.py
Last active December 3, 2024 02:57
Example Python script to use from NiFi ExecuteScript processor which reads the first line from an incoming flow file.
from org.apache.nifi.processors.script import ExecuteScript
from org.apache.nifi.processor.io import InputStreamCallback
from java.io import BufferedReader, InputStreamReader
class ReadFirstLine(InputStreamCallback) :
__line = None;
def __init__(self) :
pass
@brainstorm
brainstorm / esp32_promisc.c
Last active March 3, 2025 21:31
esp32 promiscuous mode and packet injection experiments
// Espressif ESP32 promiscuous mode and packet injection experiments
// by brainstorm at nopcode org
#include "freertos/FreeRTOS.h"
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "lwip/err.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
@zrzka
zrzka / cf-keep-alive-template.json
Created November 2, 2016 22:00
AWS Keep Alive lambda function
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Keep alive functions",
"Resources": {
"LambdaPolicy": {
"Type": "AWS::IAM::ManagedPolicy",
"Properties": {
"PolicyDocument": {