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 |
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 |
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 |
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 |
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: |
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 |
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"] |
View InstallCurlWithHTTP2Support.sh
#! /bin/bash | |
# | |
# Shell script for install Curl with HTTP2 support. Script run on Ubuntu 18.04 | |
# | |
# Notes: | |
# - Ubuntu environment is assumed | |
# - wget is assumed | |
# |