Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
Full-stack Developer

José J. Peleato Pradel jjpeleato

🖖
Full-stack Developer
View GitHub Profile
@jjpeleato
jjpeleato / .env
Last active Jan 27, 2022
Deployer file version 6.x.x - https://deployer.org/
View .env
# 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 Jan 27, 2022
Deployer file version 7.x.x - https://deployer.org/
View .env
# 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
Disable strict MySQL or MariaDB mode for WordPress
View disable-strict-mode-wordpress.sh
#!/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 Aug 20, 2020
Shell script to backup MySQL database.
View script_backup.sh
#!/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 May 6, 2021
Change PHP version easily with aliases
View .bash_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 Feb 21, 2020
Apache 2.* + PHP 7.2 + Maria DB + Node JS + Mailhog + PhpMyAdmin
View .lando.yml
# 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 Jun 29, 2021
Apache 2.* + PHP 7.3 + Maria DB + Node JS + Mailhog + PhpMyAdmin + WordPress CLI
View .lando.yml
# 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 Feb 21, 2020
Nginx + PHP 7.3 + Node JS + Mailhog
View .lando.yml
# 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 Feb 21, 2022
Shell script for remote deployment. (Script run on Ubuntu 18.04)
View deploy.sh
#!/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 Nov 4, 2020
.gitconfig file
View .gitconfig
[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"]