Skip to content

Instantly share code, notes, and snippets.

View osidney's full-sized avatar
🏢
Working

Sidney Andrews osidney

🏢
Working
View GitHub Profile

Installing h2load on Your Dev Machine

Included are the steps for macOS and Ubuntu/Debian. I didn't do Windows because I don't have or use Windows. 😕

@osidney
osidney / gist:c994080e56191833e77088e749d8b7b9
Created April 29, 2020 13:15
Correção de arquivos e pastas no WordPress pelo terminal
find -type d -exec chmod 775 {} \;
find -type f -exec chmod 664 {} \;
@osidney
osidney / docker
Created December 26, 2019 03:42
Install Docker
#Docker
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
# After the installation process is finished, you may need to enable the service and make sure it is started (e.g. CentOS 7)
systemctl enable docker.service
systemctl start docker.service
#Docker Composer
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
@osidney
osidney / php74.txt
Last active November 28, 2019 20:30
Instalação do PHP7.4
apt update && apt install php7.4-fpm php7.4-xml php7.4-bz2 php7.4-zip php7.4-mysql php7.4-intl php7.4-gd php7.4-curl php7.4-soap php7.4-mbstring php7.4-bcmath -y
@osidney
osidney / gist:6e2c918cafefdd5c31f497ce44883558
Last active November 21, 2020 22:21
Atualização do Mautic
wget https://github.com/mautic/mautic/raw/staging/upgrade.php
php7.2 upgrade.php
php7.2 app/console doctrine:migration:status
php7.2 app/console doctrine:migration:migrate
php7.2 app/console doctrine:schema:update --dump-sql
php7.2 app/console doctrine:schema:update --force
#rm -rf app/cache
php7.2 app/console cache:clear
#cloud-config
users:
- name: cloudrocket
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
ssh-authorized-keys:
- YOUR_PUB_KEY
- name: root
@osidney
osidney / gist:3583b2d6f7d713e3109e4b4580c681e7
Last active October 10, 2019 23:07
Instalando Docker + Docker Composer + Portainer no Linux
#Comandos para instalação do Docker
curl -sSL https://get.docker.com/ | CHANNEL=stable sh
systemctl enable docker.service
systemctl start docker.service
#Comandos para instalação do Docker Composer
curl -L https://github.com/docker/compose/releases/download/$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
#Comandos para instalação do Portainer
@osidney
osidney / fix-wordpress-permissions.sh
Created July 8, 2019 14:29 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory