This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Watch various files for changes and do the needful | |
gulp.watch(['src/**/*.md', 'src/**/*.html', 'src/**/*.yml'], gulp.series('jekyll:dev', reload)); | |
gulp.watch(['src/**/*.xml', 'src/**/*.txt'], gulp.series('jekyll:dev')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import gulp from 'gulp'; | |
// Loads the plugins without having to list all of them, but you need | |
// to call them as $.pluginname | |
import gulpLoadPlugins from 'gulp-load-plugins'; | |
const $ = gulpLoadPlugins(); | |
// Delete stuff | |
import del from 'del'; | |
// Used to run shell commands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('assets:dev', gulp.series('styles:dev', 'javascript:dev', 'fonts', 'images')); | |
gulp.task('assets', gulp.series('styles', 'javascript', 'fonts', 'images')); | |
// Default task, run when just writing 'gulp' in the terminal | |
gulp.task('default', gulp.series( | |
gulp.series('assets:dev'), | |
gulp.series('inject:head:dev', 'inject:footer:dev'), | |
gulp.series('jekyll:dev'), | |
gulp.series('serve') | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Default task, run when just writing 'gulp' in the terminal | |
gulp.task('default', gulp.series( | |
gulp.series('jekyll:dev'), | |
gulp.parallel('styles', 'javascript', 'fonts', 'images'), | |
gulp.series('inject:head:dev', 'inject:footer:dev'), | |
gulp.series('serve') | |
)); | |
gulp.task('build', gulp.series( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
YeomanGenerator.prototype.askForThings = function askForThings() { | |
var cb = this.async(); | |
var prompts = [{ | |
name: 'questionOne', | |
type: 'list', | |
message: 'Message, message?', | |
choices: ['optionOne', 'optionTwo', 'optionThree', 'optionFour', 'optionFive', 'optionSix', 'None'], | |
filter: function(value) { | |
return value.toLowerCase(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic VCL configuration file for varnish. See the vcl(7) | |
# man page for details on VCL syntax and semantics. | |
# | |
# Default backend definition. Set this to point to your content | |
# server. | |
# | |
backend default { | |
.host = "localhost"; | |
.port = "8080"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# www to non-www redirect -- duplicate content is BAD: | |
# https://github.com/h5bp/html5-boilerplate/blob/5370479476dceae7cc3ea105946536$ | |
# Choose between www and non-www, listen on the *wrong* one and redirect to | |
# the right one -- http://wiki.nginx.org/Pitfalls#Server_Name | |
server { | |
# don't forget to tell on which port this server listens | |
listen 80; | |
# listen on the www host | |
server_name www.yourwebsite.com; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mpm_prefork_module> | |
StartServers 2 | |
MinSpareServers 6 | |
MaxSpareServers 12 | |
MaxClients 30 | |
MaxRequestsPerChild 3000 | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: apache2 | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: apache2 | |
# Description: httpd server for serving web content | |
### END INIT INFO |
NewerOlder