Skip to content

Instantly share code, notes, and snippets.

View andreslucena's full-sized avatar
馃帶

Andr茅s Pereira de Lucena andreslucena

馃帶
View GitHub Profile
@brianjbayer
brianjbayer / gist-unlocking-the-secrets-of-rails-secrets-and-credentials.md
Last active April 30, 2025 09:31
A comprehensive examination of Rails Secrets, Credentials, and Secret Key Base

Unlocking the Secrets of Rails Secrets and Credentials

Interurban Tunnel at Blackhand Gorge- Brian J Bayer


If you are like many (most?) of us, you have encountered Rails Credentials/Secrets and secret_key_base and may have been left a bit (or more) confused.

This post is an attempt to remove some of that confusion by

@hfossli
hfossli / standard.sh
Last active March 4, 2025 12:58
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}馃憠 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"
@carolromero
carolromero / codi-garanties-decidim.md
Last active February 20, 2017 10:59
Decidim - codi de garanties democr脿tiques i de col路laboraci贸 oberta

Codi de garanties democr脿tiques i de col路laboraci贸 oberta

La utilitzaci贸 de la plataforma Decidim per part de qualsevol ajuntament o qualsevol altre ens municipal o supramunicipal, aix铆 com altres organitzacions, comporta l'assumpci贸 total i 铆ntegra d'aquest codi.

Programari lliure i continguts oberts

El codi de la plataforma, aix铆 com els m貌duls, llibreries o qualsevol altre codi que es desenvolupi per al seu funcionament, ser脿 sempre programari lliure amb llic猫ncia Affero GPLv3 o posterior [https://www.gnu.org/licenses/agpl-3.0.en.html] en el cas dels nous desenvolupaments, i de llic猫ncies compatibles amb aquesta en el cas de reutilitzaci贸 d鈥檃ltres codis.

Aix铆 mateix, els continguts, dades, APIS i/o interf铆cies que el Decidim faci servir per interactuar amb qualsevol tipus d鈥檜suari, compliran amb est脿ndards oberts i interoperables (ex. OpenID, RSS, OStatus, etc.), tendint sempre al m脿xim nivell d鈥檌ntegraci贸 amb els est脿ndards oberts m茅s estesos.

De cara a maximitzar la transpar猫ncia i la col路laborac

@dpapathanasiou
dpapathanasiou / SchemaSpy-HOWTO.md
Last active February 17, 2024 19:45
How to use SchemaSpy to generate the db schema diagram for a PostgreSQL database

SchemaSpy is a neat tool to produce visual diagrams for most relational databases.

Here's how to use it to generate schema relationship diagrams for PostgreSQL databases:

  1. Download the jar file from here (the current version is v6.1.0)

  2. Get the PostgreSQL JDBC driver (unless your installed version of java is really old, use the latest JDBC4 jar file)

  3. Run the command against an existing database. For most databases, the schema (-s option) we are interested in is the public one: