Skip to content

Instantly share code, notes, and snippets.

name: hatch
config:
drush: 8.3.2
proxy:
appserver1:
- hatch.d8.lndo.site
appserver2:
- hatch.d7.lndo.site
@sarath49
sarath49 / mod_pagespeed .htaccess
Created February 25, 2019 11:06 — forked from solancer/mod_pagespeed .htaccess
mod_pagespeed .htaccess configuration
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
@sarath49
sarath49 / drupal7_to_hugo.php
Created January 26, 2019 09:26 — forked from amoutiers/drupal7_to_hugo.php
A basic php script to migrate from Drupal to Hugo, needs "html2markdown" installed on the server
<?php
define('DRUPAL_ROOT', __DIR__);
include_once(DRUPAL_ROOT . '/includes/bootstrap.inc');
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
$nids = db_query('SELECT DISTINCT(nid) FROM {node}')
->fetchCol();
$nodes = node_load_multiple($nids);