Skip to content

Instantly share code, notes, and snippets.

View llipe's full-sized avatar
🎯
Focusing

Felipe Mallea llipe

🎯
Focusing
View GitHub Profile

Wordpress Management

Using wp cli is key to an efficient wordpress management. For command reference use the official documentation.

Update wp-cli

wp cli update

Regular CLI maintenance

@llipe
llipe / postgres-dev-env.md
Last active September 24, 2023 18:37
Running a postgres development environment in macOS

Running a postgres development environment in macOS

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:

  • Homebrew. You can install everything without Hombrew, but it's easier to maintain this way.
  • Docker, to run posgres images

How to

Diagram as a Code

A collection of essential tools to diagram a Code and Draw.io (when nothing else works good)

Last update: 18/08/2022

Diagrams - Architecture Diagrams

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.

@llipe
llipe / wordpress-backup.sh
Last active September 28, 2021 22:12
Wordpress backup script that stores a snapshot of files & database on S3
#!/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>"
@llipe
llipe / macos-command-line-utilities.md
Last active July 20, 2020 16:57
MacOS command line utilities
# 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