Skip to content

Instantly share code, notes, and snippets.

View reina3596's full-sized avatar

Sergio Reina reina3596

View GitHub Profile
@reina3596
reina3596 / README.md
Last active June 30, 2022 20:01 — forked from mrl22/README.md
Instalar y usar PHP 8.1 con Apache and NGINX en Moss.sh

Cambiar los datos necesarios

Instalar sitio web seleccionando la versión de PHP 7.4.

Instalación de php 8.1 vía apt

apt install php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-dev php8.1-fpm php8.1-imap php8.1-intl php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-pgsql php8.1-readline php8.1-soap php8.1-sqlite3 php8.1-xml php8.1-xmlrpc php8.1-zip

Configurar php 8.1 para el usuario del sitio, normalmente en mi caso siempre "aws"

@reina3596
reina3596 / mysql-gcs-backup.sh
Created October 28, 2019 17:23 — forked from dwdraju/mysql-gcs-backup.sh
Send MySQL Backup to Google Cloud Storage(GCS)
#!/bin/bash
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
BACKUP_DIR="/home/ubuntu/backup/$TIMESTAMP"
MYSQL_USER="****"
MYSQL=/usr/bin/mysql
MYSQL_PASSWORD="****"
MYSQLDUMP=/usr/bin/mysqldump
mkdir -p "$BACKUP_DIR/"
@reina3596
reina3596 / readme.md
Created September 10, 2016 10:32 — forked from Lazhari/readme.md
Use Bitbucket repo with openshift
  1. Clone your repository
$ git clone <bitbucket-repo-url>
  1. Add the remote origin for openshift

Your local clone has then your other repo (bitbucket etc.) as remote repo. Your remote repo is stored with the alias "origin" (the default alias used by git if you clone). You then add the openshift repo as remote to your clone. You do that while explicitly using an alias for the remote repo you add - I'm using "openshift" as alias here: