Skip to content

Instantly share code, notes, and snippets.

View kailichou's full-sized avatar
😃
Life is been good so far

kailichou

😃
Life is been good so far
  • Shanghai, China
View GitHub Profile
@mvaled
mvaled / builddist.sh
Last active October 30, 2023 09:15
A file to build OpenERP 7.0/8.0 distributions.
#!/bin/sh
# Build OpenERP 7.0 and 8.0 sdists.
#
# You MUST place this in the root of your odoo repository. It expects you
# have the local branches 7.0 and any other you may use.
#
# Usage:
#
# ./builddist.sh [BRANCH] [VERSION]
@Kartones
Kartones / postgres-cheatsheet.md
Last active May 3, 2024 20:51
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)