Skip to content

Instantly share code, notes, and snippets.

🖖
Full-stack Developer

José J. Peleato Pradel jjpeleato

🖖
Full-stack Developer
View GitHub Profile
@jjpeleato
jjpeleato / .bash_aliases
Last active May 25, 2020
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 Feb 21, 2020
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 May 4, 2020
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 Mar 3, 2019
.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"]
@jjpeleato
jjpeleato / InstallCurlWithHTTP2Support.sh
Created Dec 18, 2018
Install Curl with HTTP2 support. (Script run on Ubuntu 18.04)
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
#
You can’t perform that action at this time.