Skip to content

Instantly share code, notes, and snippets.

View imrodrigoalves's full-sized avatar
🧭

Rodrigo Alves Vilela imrodrigoalves

🧭
View GitHub Profile
@imrodrigoalves
imrodrigoalves / audit-your-codebase.md
Created September 8, 2026 11:59 — forked from aarondfrancis/audit-your-codebase.md
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.

docker info > /dev/null 2>&1
# Ensure that Docker is running...
if [ $? -ne 0 ]; then
echo "Docker is not running."
exit 1
fi
docker run --rm \
@imrodrigoalves
imrodrigoalves / install_docker_ec2.sh
Last active October 3, 2023 14:40 — forked from dhavaln/install_docker_ec2.sh
Install Docker on EC2
#! /bin/sh
sudo yum update -y
sudo yum install docker -y
sudo usermod -a -G docker ec2-user
sudo id ec2-user
sudo newgrp docker
wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)
sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
sudo chmod -v +x /usr/local/bin/docker-compose
sudo systemctl enable docker.service
@imrodrigoalves
imrodrigoalves / certbot-systemd-ubuntu.md
Created September 20, 2022 09:35 — forked from dbirks/certbot-systemd-ubuntu.md
Certbot renew with a systemd timer on Ubuntu

Ubuntu 16.04

/etc/systemd/system/certbot.service

[Unit]
Description=Let's Encrypt renewal

[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
@imrodrigoalves
imrodrigoalves / resetWSLSpeeds.bat
Last active October 26, 2022 15:46
Allow WSL Fast Internet
@echo off
wsl exit
powershell -Command "Set-NetAdapterLso -Name 'vEthernet (WSL)' -IPv4Enabled $False -IPv6Enabled $False"
@imrodrigoalves
imrodrigoalves / bitbucket-pipelines.yml
Last active August 29, 2022 10:30 — forked from barryvdh/bitbucket-pipelines.yml
Bitbucket Pipeline config for Laravel Vapor, make sure to `composer require laravel/vapor-cli` and set the VAPOR_API_TOKEN environment var.
# image: smartapps/bitbucket-pipelines-debian-10 # php 7.3
image: bitnami/laravel:8.6.9 # php 7.4
pipelines:
branches:
master:
- step:
name: Deploy Test
deployment: test
script:
@imrodrigoalves
imrodrigoalves / ssh.md
Created February 10, 2022 08:17 — forked from bradtraversy/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

This sheet goes along with this SSH YouTube tutorial

Login via SSH with password (LOCAL SERVER)

$ ssh brad@192.168.1.29

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@imrodrigoalves
imrodrigoalves / Cloudwatch Query
Last active January 8, 2022 10:37 — forked from viezel/log query
Laravel Vapor - Cloudwatch insights logs
fields @message | filter @log like "$log_group" | filter @message like /(?i)$search/
| filter @message not like "START RequestId"
| filter @message not like "END RequestId"
| filter @message not like "REPORT RequestId"
| filter @message not like "Starting FPM Process..."
| filter @message not like "Ensuring ready to start FPM"
| filter @message not like "Preparing to boot FPM"
| filter @message not like "NOTICE: ready to handle connections"
## List Docker CLI commands
docker
docker container --help
## Display Docker version and info
docker --version
docker version
docker info
## Execute Docker image