Skip to content

Instantly share code, notes, and snippets.

View rruprai's full-sized avatar
🎯
Focusing

rruprai rruprai

🎯
Focusing
View GitHub Profile
@rruprai
rruprai / config.yml
Last active May 4, 2019 23:58
DrupalVM config.yml with existing codebase
---
# Available `vagrant_box` values include:
# - geerlingguy/drupal-vm (pre-provisioned, based on Ubuntu 18.04)
# - geerlingguy/centos7
# - geerlingguy/centos6
# - geerlingguy/debian9
# - geerlingguy/debian8
# - geerlingguy/ubuntu1804
# - geerlingguy/ubuntu1604
vagrant_box: geerlingguy/ubuntu1804
@rruprai
rruprai / settings.local.php
Created April 26, 2019 23:03
Local Settings for Drupal 8
<?php
// @codingStandardsIgnoreFile
/**
* @file
* Local development override configuration feature.
*
* To activate this feature, copy and rename it such that its path plus
* filename is 'sites/default/settings.local.php'. Then, go to the bottom of
@rruprai
rruprai / local.services.yml
Created April 26, 2019 23:05
Local Services File for Drupal 8
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
@rruprai
rruprai / extract-media-query.js
Created December 24, 2019 22:53
Gulpjs separating css by media query
'use strict';
// Required packages.
var gulp = require('gulp'),
sass = require('gulp-sass'),
del = require('del'),
minifyCss = require('gulp-clean-css'),
renameFile = require('gulp-rename'),
mediaQueriesSplitter = require('gulp-media-queries-splitter');