Skip to content

Instantly share code, notes, and snippets.

View loriezn's full-sized avatar
🌴
On vacation

Lorin Zahra-Newman loriezn

🌴
On vacation
View GitHub Profile
@jaclyntan
jaclyntan / gulpfile.js
Created December 27, 2016 20:13
One gulpfile to rule them all: Wordpress edition
"use strict";
// . . . .
// ,`,`,`,`,
//. . . . `\`\`\`\;
//`\`\`\`\`, ~|;!;!;\!
// ~\;\;\;\|\ (--,!!!~`! .
//(--,\\\===~\ (--,|||~`! ./
// (--,\\\===~\ `,-,~,=,:. _,//
// (--,\\\==~`\ ~-=~-.---|\;/J,
'use strict';
let config = {
apiProxy: process.env.PROXY || 'http://0.0.0.0:3002'
};
//=============================================
// DEPENDENCIES
//=============================================
@MrFranke
MrFranke / gulp.js
Created March 15, 2016 19:09
Пример конфига для gulp
//
// Requirements
//
var gulp = require('gulp'),
_if = require('gulp-if'),
path = require('path'),
argv = require('yargs').argv,
clean = require('gulp-clean'),
filter = require('gulp-filter'),
rename = require('gulp-rename'),
@ivancuric
ivancuric / gulpfile.js
Last active December 2, 2017 14:01
Gulp + nunjucks
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync').create();
var notify = require('gulp-notify');
var autoprefixer = require('autoprefixer');
var mqpacker = require('css-mqpacker');
var csswring = require('csswring');
var plumber = require('gulp-plumber');
var postcss = require('gulp-postcss');
var prettify = require('gulp-jsbeautifier');
@plasticbrain
plasticbrain / gulpfile.js
Last active February 13, 2024 14:31
gulp.js task to deploy code to remote servers
/*******************************************************************************
* Description:
*
* Gulp file to push changes to remote servers (eg: staging/production)
*
* Usage:
*
* gulp deploy --target
*
* Examples:
@mikroskeem
mikroskeem / Arch Linux btrfs install.md
Last active October 18, 2024 19:52 — forked from artizirk/Arch Linux btrfs install.md
Arch Linux installation on btrfs subvolumes

Arch Linux btrfs install

NOTE: Last update to this gist was on Jun 2, 2018. Most of the things here are out of date (e.g consider using zstd for transparent compression instead of lzo), so do your own research as well. Take care!

0. Prerequisites

  • Plenty of storage - snapshots will take (sort of) a lot of space
  • Latest Arch Linux install iso because those have newer kernels and more bugfixes in btrfs.
  • Have previous experience with installing Arch (like you can install arch with a blind fold).
  • Read everything through
@robshep
robshep / gulpfile.js
Last active January 4, 2017 09:17
gulpfile.js
/**
*
*/
var version = '1.0.0';
var bsThemeVariables = "bootstrap-variables-sarbase2";
var PRODUCTION = (process.env.FE_PROD) || false;
console.log("PRODUCTION = " + PRODUCTION);
@Lissy93
Lissy93 / gulpfile.js
Last active April 2, 2018 08:15
An over-commented example of a Gulp setup for Express Node apps, with live reload from browser-sync and nodemon as well as a complete build setup using various modules
/**
* Created by alicia.sykes on 17/07/2015.
* To run script run "gulp" in the command line
* To just watch files run "gulp watch"
* To just clean the public directory run "gulp clean"
*/
/* Include the necessary modules */
var gulp = require('gulp');
var gutil = require('gulp-util'); // For logging stats and warnings
@Falconerd
Falconerd / gulpfile.js
Last active April 10, 2019 17:16
Gulp + Watchify + Babelify + BrowserSync
/**
* This gulpfile will copy static libraries and a index.html file as well as
* merge, babelify and uglify the rest of the javascript project.
*
* TODO:
* - Separate media, libs and src with different watchers.
* - Media and libs should only be copied to dist if they are different sizes.
*
* The expected project is to be laid out as such:
*
@bolza-admedo
bolza-admedo / gulpfile.js
Created February 18, 2015 12:17
APP/gulpfile.js
var args = require('yargs').argv;
var browserSync = require('browser-sync');
var config = require('./gulp.config')();
var del = require('del');
var glob = require('glob');
var gulp = require('gulp');
var path = require('path');
var _ = require('lodash');
var $ = require('gulp-load-plugins')({lazy: true});