Based on:
- https://gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3
- https://medium.com/@miqui.ferrer/the-ultimate-guide-to-managing-python-virtual-environments-in-macos-c8cb49bf0a3c
xcode
xcode-select --install
# Based on https://gist.github.com/TonyMtz/d75101d9bdf764c890ef | |
# Had to make it the manual way because the automated way didn't work | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* | |
# go to /usr/local/include and delete any node and node_modules directory |
# Estrucutura para crear usuarios, permisos y directorios para configurar apache y sitios web en Ubuntu | |
sudo usermod -a -G www-data ubuntu | |
cd $HOME | |
mkdir public_html | |
sudo chgrp www-data public_html/ | |
# Reemplazar dominio | |
sudo chmod 2750 /home/ubuntu/public_html/ | |
mkdir -p public_html/llipe.com/{public,log} |
<VirtualHost *:80> | |
ServerName dominio.cl | |
ServerAlias www.dominio.cl | |
DocumentRoot /home/ubuntu/public_html/dominio.cl/public | |
<Directory /home/ubuntu/public_html/dominio.cl/public/> | |
AllowOverride all | |
Require all granted |
# 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 |
# 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 |
#!/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>" |
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):
TOC
Ref: https://www.speedtest.net/apps/cli
Installation
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