Skip to content

Instantly share code, notes, and snippets.

View matgargano's full-sized avatar

Mat Gargano matgargano

View GitHub Profile
@matgargano
matgargano / twig.twig
Created May 10, 2019 19:54
blur background
<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"
<!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>
- 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
# 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"
<?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);
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "git",
"url": "https://github.com/tabrisrp/wp-background-processing"
}
]
- name: touch advanced-cache.php from WP Rocket
command: touch advanced-cache.php
args:
chdir: "{{ deploy_helper.new_release_path }}/web/app"
- name: touch advanced-cache.php from WP Rocket
command: touch advanced-cache.php
args:
chdir: "{{ deploy_helper.new_release_path }}/web/app"
@matgargano
matgargano / form.html
Created February 15, 2019 01:39
20190214
<!DOCTYPE html>
<html lang="en">
<head>
<title>Forms</title>
</head>
<body>
<p><a href="/index.html">Home page</a></p>
<form>
<p>
<label for="url">URL</label>
{% if menu %}
<ul class="menu_list">
{% for item in menu %}
<li class="menu_item {{ item.classes | join(' ') }}">
<a target="{{ item.target }}" href="{{ item.link }}" class="menu_link">{{ item.title }}</a>
{% include "menu.twig" with {'menu': item.get_children} %}
</li>
{% endfor %}
</ul>