Using wp cli is key to an efficient wordpress management. For command reference use the official documentation.
wp cli update
Using wp cli is key to an efficient wordpress management. For command reference use the official documentation.
wp cli update
The challenge is to set up a straightforward development environment for experimenting and conducting basic backend development tasks on my Mac. The underlying concept is to run a PostgreSQL instance as needed, without getting bogged down in the intricacies, and to simultaneously accommodate multiple versions or configurations.
Requirements:
A collection of essential tools to diagram a Code and Draw.io (when nothing else works good)
Last update: 18/08/2022
Diagrams lets you draw the cloud system architecture in Python code. It was born for prototyping a new system architecture without any design tools. You can also describe or visualize the existing system architecture as well.
Diagrams currently supports six major providers: AWS, Azure, GCP, Kubernetes, Alibaba Cloud and Oracle Cloud. It now also supports On-Premise nodes as well as Programming Languages and Frameworks.
#!/bin/bash | |
# This script requires wp-cli to work and aws cli. | |
# WP CLI: https://wp-cli.org/ | |
# AWS cli: https://aws.amazon.com/es/cli/ | |
# Usage: wordpress-backup.sh <domain-name> <s3 bucket> <wp basepath> | |
if [ -z "$1" ] | |
then | |
echo "Domain name missing" | |
echo "Usage: wordpress-backup.sh <domain-name> <s3 bucket> <wp basepath>" |
Ref: https://dev.to/blacksourcez/setup-java-development-environment-for-macos-2pdg
Official Reference: https://github.com/jenv/jenv
# Requires homebrew -> https://brew.sh/
brew tap adoptopenjdk/openjdk
TOC
Ref: https://www.speedtest.net/apps/cli
Installation
Based on: https://gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3
$ brew install python3
Based on: https://gist.github.com/Kartones/dd3ff5ec5ea238d4c546#file-postgres-cheatsheet-md
Magic words:
psql -U postgres
psql -h localhost -U postgres -d postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
# Minikube start | |
minikube start --vm-driver=hyperkit | |
# specify context | |
kubectl config use-context minikube | |
# get cluster info to verify kubectl is configured | |
kubectl cluster-info | |
minikube dashboard |
# Ref: https://codex.wordpress.org/Changing_File_Permissions | |
# Fix de permisos de carpetas desde carpeta public del sitio | |
sudo find . -type f -exec chmod 664 {} \; | |
sudo find . -type d -exec chmod 775 {} \; | |
chmod -R 660 wp-config.php |