grubb description: Notebook product: 81H6 (LENOVO_MT_81H6_BU_idea_FM_ideapad 130-14IKB) vendor: LENOVO version: Lenovo ideapad 130-14IKB serial: MP1H8VQU width: 64 bits capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32 configuration: administrator_password=enabled boot=normal chassis=notebook family=ideapad 130-14IKB frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=LENOVO_MT_81H6_BU_idea_FM_ideapad 130-14IKB uuid=69cd9ed3-4580-11e9-8bb6-9c5a44316938
Magic words:
psql -U postgresSome 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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "tls_private_key" "ca" { | |
| algorithm = "RSA" | |
| } | |
| resource "tls_self_signed_cert" "ca" { | |
| key_algorithm = "RSA" | |
| private_key_pem = "${tls_private_key.ca.private_key_pem}" | |
| subject { | |
| common_name = "${var.domain}" |
| title | subtitle | author | date | source |
|---|---|---|---|---|
Docker Compose Cheatsheet |
Quick reference for Docker Compose commands and config files |
Jon LaBelle |
April 7, 2019 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun source (filename) | |
| "Update environment variables from a shell source file." | |
| (interactive "fSource file: ") | |
| (message "Sourcing environment from `%s'..." filename) | |
| (with-temp-buffer | |
| (shell-command (format "diff -u <(true; export) <(source %s; export)" filename) '(4)) | |
| (let ((envvar-re "declare -x \\([^=]+\\)=\\(.*\\)$")) |
NewerOlder