Skip to content

Instantly share code, notes, and snippets.

@andypl
andypl / PostgreSQL_index_naming.rst
Created April 13, 2020 13:35 — forked from popravich/PostgreSQL_index_naming.rst
PostgreSQL index naming convention to remember

The standard names for indexes in PostgreSQL are:

{tablename}_{columnname(s)}_{suffix}

where the suffix is one of the following:

  • pkey for a Primary Key constraint;
  • key for a Unique constraint;
  • excl for an Exclusion constraint;
  • idx for any other kind of index;
@andypl
andypl / .gitignore
Created March 7, 2020 21:03 — forked from JonathanGawrych/.gitignore
Java .gitignore template
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
@andypl
andypl / polecenia_git.md
Created May 27, 2019 10:28 — forked from chajr/polecenia_git.md
Polecenia GIT

Przydatne polecenia GIT

basics

  • git init - inicjalizuje repozytorium GIT w katalogu
  • git clone {adres repozytorium} - klonuje repozytorium do katalogu
  • git status - pokazuje status repozytorium (pokazuje informację o zmodyfikowanych, nowych, usuniętych oraz nie należące do repozytorium plikach)
  • git add {ścierzka do pliku} - dodaje plik do repozytorium (np. git add folder/plik.php)
  • git add -A - dodaje wszystkie nie należące do repozytorium pliki
  • git config --global color.ui auto - włącza koloryzowanie wyników w konsoli