Skip to content

Instantly share code, notes, and snippets.

Mat Gargano matgargano

Block or report user

Report or block matgargano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c691858820582c9e6f1360c28cd316d3
[xdebug]
zend_extension="/Applications/MAMP//bin/php/php7.2.20/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=/Applications/MAMP/tmp
xdebug.idekey=VAGRANT
View gist:1fa24ddb48fde071b1ca793b897742d5
[
{
title: 'Node1',
value: '0-0',
key: '0-0',
children: [
{
title: 'Child Node1',
value: '0-0-0',
key: '0-0-0',
@matgargano
matgargano / twig.twig
Created May 10, 2019
blur background
View twig.twig
<div class="container-fluid p-0 ">
<div class="slick">{% for image in field.images %}
<div class="position-relative">
<div class="z-2 position-absolute vh-50 w-100 bg-primary bs-cover bp-center-center br-repeat blur-secondary blur background-secondary "
style="top:0;left:0;background-image:url('{{ TimberImage(image.image).src }}');">
</div>
<div class="vh-50 z-5 bs-contain bp-center-center br-no-repeat blur-secondary position-relative"
View index.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>CSS Review</title>
<!-- make sure you put style.css in a css/style.css, not the root -->
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header>
View trellis-roles-deploy-defaults-main-project-shared-children.yml
- path: web/app/cache
src: cache
mode: '0755'
type: directory
- path: web/app/wp-rocket-config
src: cache
mode: '0755'
type: directory
- path: web/app/advanced-cache.php
src: advanced-cache.php
View trellis-group_vars-production-vault.yml
# Documentation: https://roots.io/trellis/docs/vault/
vault_mysql_root_password: generatedpwdontusethis
# Documentation: https://roots.io/trellis/docs/security/
vault_users:
- name: "{{ admin_user }}"
password: generatedpwdontusethis
salt: "generatedsaltdontusethis"
View define-wp-rocket-key-and-email.php
<?php
if ( ! defined( 'WP_ROCKET_KEY' ) ) {
define( 'WP_ROCKET_KEY', '12345fake');
}
// Your email, the one you used for the purchase.
if ( ! defined( 'WP_ROCKET_EMAIL' ) ) {
define( 'WP_ROCKET_EMAIL', 'fake@fakeguy.com' );
}
define('WP_CACHE', true);
View composer-repositories.json
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "git",
"url": "https://github.com/tabrisrp/wp-background-processing"
}
]
View build-after.yml
- name: touch advanced-cache.php from WP Rocket
command: touch advanced-cache.php
args:
chdir: "{{ deploy_helper.new_release_path }}/web/app"
View build-after.yml
- name: touch advanced-cache.php from WP Rocket
command: touch advanced-cache.php
args:
chdir: "{{ deploy_helper.new_release_path }}/web/app"
You can’t perform that action at this time.