start new:
tmux
start new with session name:
tmux new -s myname
public class Person { | |
String name; | |
int age; | |
private Person(String name, int age) { | |
this.name = name; | |
this.age = age; | |
} | |
static PersonWaitingForName create() { |
Public-key infrastructure (PKI) is an umbrella term for everything that has to do with keys and certificates.
This is a quick overview of the important stuff.
Public-key cryptography involves a key pair: a public key and a private key. Each entity has their own. The public key can be shared around, the private key is secret.
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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)