Skip to content

Instantly share code, notes, and snippets.

View mauriciodulce's full-sized avatar

Mauricio Dulce mauriciodulce

View GitHub Profile
@mauriciodulce
mauriciodulce / .htaccess
Created January 29, 2018 21:51 — forked from Zodiac1978/.htaccess
Safer WordPress with these .htaccess additions
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
</IfModule>
# Don't list directories
<IfModule mod_autoindex.c>
@mauriciodulce
mauriciodulce / local-symlink.sh
Created October 24, 2018 12:06 — forked from afragen/local-symlink.sh
For use with Local by Flywheel (Pressmatic) Volumes Addon to create symlinks for better IDE integration
@mauriciodulce
mauriciodulce / wpinstall.sh
Created March 21, 2019 19:34 — forked from rutger1140/wpinstall.sh
WordPress install script bases on wp-cli - work in progress
#!/bin/bash
# Input database name
echo "---"
echo "wpinstall.sh - A WordPress installation shell script"
echo "by Rutger Laurman"
echo "---"
echo "- Requires WP-CLI, make sure you install that first (http://wp-cli.org/)"
echo "- Check file for configurations"
echo "- Downloads, configures, installs WordPress, default theme and plugins"
@mauriciodulce
mauriciodulce / Larval Elixir Foundation Sites
Created June 16, 2019 20:55 — forked from johnregalado/Larval Elixir Foundation Sites
Laravel 5.2 Elixir with Foundation Sites & Font Awesome JS Babel
npm install jquery --save
npm install foundation-sites --save
npm install motion-ui --save
npm install font-awesome
@mauriciodulce
mauriciodulce / gulpfile.js
Created June 26, 2019 16:09 — forked from leymannx/gulpfile.js
Gulp 4 Sass BrowserSync Kickstart Example
// Requires Gulp v4.
// $ npm uninstall --global gulp gulp-cli
// $ rm /usr/local/share/man/man1/gulp.1
// $ npm install --global gulp-cli
// $ npm install
const { src, dest, watch, series, parallel } = require('gulp');
const browsersync = require('browser-sync').create();
const sass = require('gulp-sass');
const autoprefixer = require('gulp-autoprefixer');
const sourcemaps = require('gulp-sourcemaps');
@mauriciodulce
mauriciodulce / s3Sync.sh
Created March 2, 2021 22:25 — forked from kellyrmilligan/s3Sync.sh
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public
@mauriciodulce
mauriciodulce / README.md
Created July 24, 2022 21:14 — forked from mrl22/README.md
PHP 8.1 Support for Apache and NGINX (OpenResty) on Moss.sh

Do not copy and paste this code, it requires changes

As of writing this, Moss.sh does not support PHP 8.1 via the control panel even though Ubuntu does.

Set up your website using Moss.sh and select Apache with PHP 7.4.

Once complete, we need to install PHP 8.1 with all the packages moss installs for 7.4.

apt install php8.1-bcmath php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-dev php8.1-fpm php8.1-imap php8.1-intl php8.1-mbstring php8.1-mysql php8.1-opcache php8.1-pgsql php8.1-readline php8.1-soap php8.1-sqlite3 php8.1-xml php8.1-xmlrpc php8.1-zip