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
| # Add somewhere this line | |
| host all postgres 0.0.0.0/0 md5 |
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
| sudo timescaledb-tune |
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
| sudo service postgresql restart |
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
| # First enter a postgres command line | |
| sudo -u postgres psql | |
| # In postgres command line create a standard table | |
| CREATE TABLE conditions ( | |
| time TIMESTAMPTZ NOT NULL, | |
| location TEXT NOT NULL, | |
| temperature DOUBLE PRECISION NULL, | |
| humidity DOUBLE PRECISION NULL | |
| ); |
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
| import psycopg2 | |
| import random | |
| import time | |
| host="localhost" | |
| database="your_database_name" | |
| user="your_user" | |
| pwd="your_password" | |
| p="5432" # Default port |
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
| # Enter postgres command line | |
| sudo -u postgres psql | |
| ALTER ROLE postgres WITH PASSWORD 'your_password'; | |
| \q | |
| # \q to exit postgres command line |
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
| # Update apt list package | |
| sudo apt update | |
| # Install apache2 | |
| sudo apt install apache2 | |
| # Check status | |
| sudo systemctl status apache2 |
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
| Facultad | Enlace | |
|---|---|---|
| Facultad de Arquitectura y Urbanismo | Sin soporte | |
| Facultad de Arte y Diseño | Sin soporte | |
| Facultad de Ciencias Contables | Sin soporte | |
| Facultad de Ciencias y Artes de la Comunicación | Sin soporte | |
| Facultad de Educación | Sin soporte | |
| Facultad de Ciencias e Ingeniería Descargar | https://bit.ly/3foCIPG | |
| Facultad de Artes Escénicas | Sin soporte | |
| Facultad de Ciencias Sociales | Sin soporte | |
| Facultad de Letras y Ciencias Humanas | Sin soporte |
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
| # Enter postgres command line | |
| sudo -u postgres psql -c "ALTER ROLE postgres WITH PASSWORD 'postgres';" | |
| # \q to exit postgres command line |
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
| Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |