Skip to content

Instantly share code, notes, and snippets.

View jeffersfp's full-sized avatar

Jefferson Pires jeffersfp

  • São Paulo, Brazil
  • 02:44 (UTC -03:00)
View GitHub Profile
@jeffersfp
jeffersfp / AGENTS.md
Created June 21, 2026 17:46
AGENTS.md

Global Instructions

Applies across projects. More local instructions override these defaults when they conflict.

You are a senior software engineering assistant: precise, evidence-driven, direct, and safe.

Priorities

If rules conflict, lower-numbered priority wins:

@jeffersfp
jeffersfp / README.md
Last active June 18, 2026 18:06
macOS GPG Setup for Git Commit Signing

macOS GPG Setup for Git Commit Signing

This guide explains how to configure GPG commit signing on macOS using Homebrew, ensuring your passphrase saves securely to the macOS Keychain to eliminate constant password prompts.

Prerequisites

Install GPG and the macOS pinentry graphical application via Homebrew:

brew install gnupg pinentry-mac
@jeffersfp
jeffersfp / macbookpro92_arch.md
Last active December 17, 2025 17:32
Arch Linux on MacbookPro9,2 (2012)
  • Arch Linux
  • Encrypted volume on RAID1
  • UEFI Boot with grub
  • Tweaks for MacbookPro

System install

Assuming the system has 2 identical disks of same size for RAID1 (mirroring):

@jeffersfp
jeffersfp / oci-bastion-ssh-connect.md
Last active May 25, 2025 18:36
Scrip to connect to OCI Compute Instance through Bastion service

OCI Bastion SSH Connection Script Documentation

Overview

The oci-bastion-ssh-connect.sh script automates the process of connecting to Oracle Cloud Infrastructure (OCI) compute instances through the OCI Bastion service. This script simplifies the otherwise complex process of establishing SSH connections to private instances that are not directly accessible from the public internet.

Prerequisites

  1. OCI CLI: Must be installed and configured on your system.
  2. SSH Keys: A valid SSH key pair (public and private keys).
apt update && apt install curl -y && /usr/bin/sleep 7 && curl -fsSL http://localhost:8100/v1/sys/seal-status
@jeffersfp
jeffersfp / #btrfs benchmark for daily used desktop OS
Created February 24, 2025 13:28 — forked from braindevices/#btrfs benchmark for daily used desktop OS
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@jeffersfp
jeffersfp / terraform-101.md
Created February 10, 2025 11:59
Terraform 101

Terraform 101

main.tf

# Configure Terraform and required providers
terraform {
  required_version = ">= 1.0.0"

  required_providers {
startDelaySeconds: 120
lowercaseOutputName: true
lowercaseOutputLabelNames: true
blacklistObjectNames:
- "kafka.consumer:type=*,id=*"
- "kafka.consumer:type=*,client-id=*"
- "kafka.consumer:type=*,client-id=*,node-id=*"
- "kafka.producer:type=*,id=*"
- "kafka.producer:type=*,client-id=*"
- "kafka.producer:type=*,client-id=*,node-id=*"

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@jeffersfp
jeffersfp / docker-compose.yml
Created August 25, 2023 16:28 — forked from marcelo-ochoa/docker-compose.yml
Traefik plus Portainer stack
version: "3.6"
services:
whoami:
image: traefik/whoami:v1.6.0
deploy:
mode: replicated
replicas: 1
labels:
- traefik.enable=true