Skip to content

Instantly share code, notes, and snippets.

View Rovel's full-sized avatar
🙈
Monkey patching life

Filipe Veloso Rovel

🙈
Monkey patching life
View GitHub Profile
@Rovel
Rovel / reset-pi-passwd.md
Created May 27, 2026 04:05 — forked from jlollis/reset-pi-passwd.md
Reset Forgotten Raspberry Password

Reset Forgotten Raspberry Pi Password

Remove SD Card

The first step is to turn off the Raspberry so you can remove the memory card without worry.

If the Raspberry Pi is not connected to a screen, the only way to turn it off is to unplug it. Otherwise, you can go through the GUI to turn it off properly, via the menu, before unplugging it.

Once the Raspberry Pi is turned off, you can insert the card into your computer and go to the next step.

@Rovel
Rovel / kamal-production-server-setup.sh
Last active June 8, 2025 05:47 — forked from rameerez/kamal-production-server-setup.sh
Set up a Ubuntu server to deploy Kamal 2.x Docker containers to, hardened security and production ready
#!/bin/bash
# Ubuntu 24.04 Server Hardening Script
set -euo pipefail
IFS=$'\n\t'
# --- Constants ---
REQUIRED_OS="Ubuntu"
REQUIRED_VERSION="24.04"
@Rovel
Rovel / docker-compose.yml
Created June 13, 2023 13:05 — forked from Nikkely/docker-compose.yml
redis replication on docker-compose
version: '3'
services:
redis:
image: redis:5.0.0
container_name: master
ports:
- "6379:6379"
networks:
- redis-replication
@Rovel
Rovel / ReadMe.md
Created June 1, 2023 15:30
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

To check the current limits on your Mac OS X system, run in terminal:

launchctl limit maxfiles
ulimit -a

Steps

@Rovel
Rovel / how2gpg.md
Last active October 28, 2022 19:38
GPG Commands

Generate your keys

Prereqs

Create your keys with your email.

Execute following commands:

@Rovel
Rovel / postgres-cheatsheet.md
Created October 23, 2020 20:52 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@Rovel
Rovel / Gemfile
Created June 25, 2020 01:53 — forked from dhh/Gemfile
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MIX_ENV: test
@Rovel
Rovel / settings.json
Last active May 28, 2020 03:04
Windows Terminal Profile
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"experimental_showTabsInTitlebar": true,
"profiles": [
{
@Rovel
Rovel / listRdsSnaps.sh
Created May 19, 2020 19:54
AWS List RDS SnapShots and check if they are public
#!/bin/bash
REGIONS=$(aws ec2 describe-regions --output json | awk -F'"' '/"RegionName":/ { print $4 }')
for Region in $REGIONS
do
Snaps=$(aws rds describe-db-snapshots --output json --region ${Region} | awk -F'"' '/"DBSnapshotIdentifier":/ {print $4 }')
if [ -z "$Snaps" ]; then
echo "No snapshots found in $Region"
echo "======================================================="
else