$ sudo adduser deploy
add "deploy" user to sudo group if you want deploy to be a sudoer
$ sudo usermod -aG sudo deploy
$ sudo apt-get install nginx
$ sudo apt-get install -y dirmngr gnupg apt-transport-https ca-certificates curl
$ curl https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/phusion.gpg >/dev/null
$ sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jammy main > /etc/apt/sources.list.d/passenger.list'
DATABASE_URL:=postgres://postgres:foobarbaz@localhost:5432/postgres | |
.PHONY: run-postgres | |
run-postgres: | |
@echo Starting postgres container | |
-docker run \ | |
-e POSTGRES_PASSWORD=foobarbaz \ | |
-v pgdata:/var/lib/postgresql/data \ | |
-p 5432:5432 \ | |
postgres:15.1-alpine |
# bluetoothctl
# scan on
then, find and copy address for your headphone
Problem:
def image_as_thumbnail
image.variant(resize_to_limit: [50, 50]).processed
end
You will create 4 tables based on JSON format. For that, you will use the DynamoDBManager.create_table
method.
To make it easy to access the properties of each of the tables, create the dictionaries that have the following attributes:
table_name
: Name of the table, composed of a course prefix and the table name.kwargs
: Dictionary with additional arguments used in the DynamoDBManager.create_table
method.