Skip to content

Instantly share code, notes, and snippets.

View jjpeleato's full-sized avatar
🖖
Full-stack Developer

José J. Peleato Pradel jjpeleato

🖖
Full-stack Developer
View GitHub Profile
@jjpeleato
jjpeleato / .env
Last active January 27, 2022 13:02
Deployer file version 6.x.x - https://deployer.org/
# Deployer system
DEP_APPLICATION="starter-boilerplate"
DEP_REPOSITORY="https://github.com/jjpeleato/[name].git"
DEP_SLACK_HOOK="https://hooks.slack.com/services/[key]"
DEP_DEV_HOSTNAME=""
DEP_DEV_PORT=22
DEP_DEV_USER=""
DEP_DEV_HTTP_USER=""
DEP_DEV_DEPLOY_PATH=""
@jjpeleato
jjpeleato / .env
Last active January 27, 2022 13:01
Deployer file version 7.x.x - https://deployer.org/
# Deployer system
DEP_APPLICATION="starter-boilerplate"
DEP_REPOSITORY="https://github.com/jjpeleato/[name].git"
DEP_SLACK_HOOK="https://hooks.slack.com/services/[key]"
DEP_DEV_HOSTNAME=""
DEP_DEV_PORT=22
DEP_DEV_USER=""
DEP_DEV_HTTP_USER=""
DEP_DEV_DEPLOY_PATH=""
@jjpeleato
jjpeleato / disable-strict-mode-wordpress.sh
Last active May 3, 2021 10:24
Disable strict MySQL or MariaDB mode for WordPress
#!/bin/bash
#
# Disable strict MySQL or MariaDB mode for WordPress.
#
# Look at:
# - Find "$incompatible_modes" variable on "./wp-includes/wp-db.php"
#
# Notes:
# - root user is assumed
@jjpeleato
jjpeleato / script_backup.sh
Last active August 20, 2020 07:58
Shell script to backup MySQL database.
#!/bin/bash
#
# Shell script to backup MySQL database.
#
# Notes:
# - MySQL or MariaDB is assumed
# - mysqldump is assumed
# - gzip is assumed
# - UNIX target environment is assumed
@jjpeleato
jjpeleato / .bash_aliases
Last active March 19, 2023 09:05
Change PHP version easily with aliases
#
# Change PHP version easily with aliases
#
# Install:
# - Exec the next command: $cd ~ && touch .bash_aliases && gedit .bash_aliases
# - Copy the gist content and save
# - Exec the next command: $. .bashrc
#
# Notes:
# - Linux environment is assumed
@jjpeleato
jjpeleato / .lando.yml
Created February 21, 2020 07:45
Apache 2.* + PHP 7.2 + Maria DB + Node JS + Mailhog + PhpMyAdmin
# See: https://lando.dev/
name: lamp
# See: https://docs.devwithlando.io/tutorials/lamp.html
recipe: lamp
config:
php: "7.2"
webroot: public
database: mariadb
xdebug: true
@jjpeleato
jjpeleato / .lando.yml
Last active June 29, 2021 03:29
Apache 2.* + PHP 7.3 + Maria DB + Node JS + Mailhog + PhpMyAdmin + WordPress CLI
# See: https://lando.dev/
name: starterboilerplate
# See: https://docs.devwithlando.io/tutorials/wordpress.html
recipe: wordpress
config:
php: "7.3"
webroot: public
database: mariadb
xdebug: true
@jjpeleato
jjpeleato / .lando.yml
Last active February 21, 2020 07:45
Nginx + PHP 7.3 + Node JS + Mailhog
# See: https://lando.dev/
name: htmlboilerplate
# See: https://docs.devwithlando.io/config/proxy.html
proxy:
appserver_nginx:
- web.htmlboilerplate.lndo.site
appserver:
- php.htmlboilerplate.lndo.site
node:
@jjpeleato
jjpeleato / deploy.sh
Last active July 22, 2023 08:38
Shell script for remote deployment. (Script run on Ubuntu 18.04)
#!/bin/bash
#
# Shell script for remote deployment.
#
# Notes:
# - Git is assumed
# - Composer is assumed
# - NPM is assumed
# - Windows host and Cygwin environment is assumed
@jjpeleato
jjpeleato / .gitconfig
Last active November 4, 2020 08:34
.gitconfig file
[user]
name = José J. Peleato Pradel
email = jjpeleato@example.com
[color]
ui = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]