Skip to content

Instantly share code, notes, and snippets.

View hansfpc's full-sized avatar
🌗
There ain't no such thing as a free lunch.

Hans Piña hansfpc

🌗
There ain't no such thing as a free lunch.
View GitHub Profile
@hansfpc
hansfpc / postgres-cheatsheet.md
Created October 13, 2025 03:42 — 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)
@hansfpc
hansfpc / docker_commands.sh
Last active April 2, 2019 08:15 — forked from santi020k/docker_commands.sh
Comandos básicos de Docker (spanish)
# Notas
containerID # suficiente con los primeros 3 dijitos del id
-it # Modo iterativo
# Comprobar funcionamiento docker
docker -v
# o
docker version
@hansfpc
hansfpc / facebook_warning.html
Created July 29, 2018 17:24 — forked from tosbourn/facebook_warning.html
How to recreate Facebook's console warning
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;';
const warningDescCSS = 'font-size: 18px;';