This file contains 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 | |
## | |
# Keep local path in sync with remote path on server. | |
# Ignore .git metadata. | |
# | |
local=$BASEDIR | |
project='projetctname' | |
remote='[email protected]:/var/www/'$project | |
# Initialization - copy entire directory to host |
This file contains 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
var jpegtran = require('imagemin-jpegtran'); | |
var mozjpeg = require('imagemin-mozjpeg'); | |
module.exports = function(grunt) { | |
// Project configuraiton | |
grunt.initConfig({ | |
compass: { | |
dist: { | |
options: { | |
config: 'config.rb' |
This file contains 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 mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
# Redirect Trailing Slashes... | |
RewriteEngine On |
This file contains 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 | |
# Parameters | |
. export_db-params | |
echo Script start | |
# File cleaning | |
find ${export_path}/* -type f -mtime +15 -delete; | |
# Mysql dump |
This file contains 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
var gulp = require('gulp'); | |
var path = require('path'); | |
var browserify = require('browserify'); | |
var reactify = require('reactify'); | |
var watchify = require('watchify'); | |
var gulpif = require('gulp-if'); | |
var uglify = require('gulp-uglify'); | |
var streamify = require('gulp-streamify'); | |
var notify = require('gulp-notify'); |
This file contains 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
var gulp = require('gulp'); | |
var imageResize = require('gulp-image-resize'); | |
var rename = require('gulp-rename'); | |
gulp.task('img-thumb', function () { | |
return gulp.src('web/galleries/uploads/*/*.jpg') | |
.pipe(imageResize({ | |
width : 365, | |
height : 300, | |
crop : true, |
This file contains 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
1. Edit Vagrant file | |
----------------------------------------- | |
# Vagrantfile #65 | |
if Vagrant.has_plugin?("vagrant-cachier") | |
config.cache.scope = :machine | |
config.cache.synced_folder_opts = { | |
type: :nfs, | |
mount_options: ['rw', 'vers=3', 'tcp', 'nolock'] | |
} |