Skip to content

Instantly share code, notes, and snippets.

View matt-bailey's full-sized avatar

Matt Bailey matt-bailey

  • GPMD
  • London, UK
View GitHub Profile
@matt-bailey
matt-bailey / gist:3667087
Created September 7, 2012 15:18
Terminal - Secure Copy file
# Copy file from local to remote server (reverse to copy the other way)
scp [filename] [user]@[remote-server]:/tmp/
# To compress
tar -zcvf archive_name.tar.gz folder_to_compress
# To extract
tar -zxvf archive_name.tar.gz
@matt-bailey
matt-bailey / yo webapp output
Last active December 16, 2015 16:59
yo webapp output
Out of the box I include HTML5 Boilerplate, jQuery and Modernizr.
Would you like to include Twitter Bootstrap for Sass? (Y/n)
Would you like to include RequireJS (for AMD support)? (Y/n)
create Gruntfile.js
create package.json
create .gitignore
create .gitattributes
create .bowerrc
create component.json
create .jshintrc
@matt-bailey
matt-bailey / grunt --force output
Created April 26, 2013 13:36
Output when running 'grunt --force'
>> Local Npm module "grunt-mocha" not found. Is it installed?
Running "jshint:all" (jshint) task
>> 4 files lint free.
Warning: Task "mocha" not found. Used --force, continuing.
Running "clean:dist" (clean) task
Running "useminPrepare:html" (useminPrepare) task
Going through app/index.html to update the config
@matt-bailey
matt-bailey / gist:5765024
Created June 12, 2013 13:00
How to install Yeoman
npm install -g yo grunt-cli bower
@matt-bailey
matt-bailey / gist:5765048
Created June 12, 2013 13:04
Yeoman - Yo webapp generator directory structure
myproject/
|-- .sass-cache/
|-- .tmp/
|-- app/
| |-- components/
| |-- images/
| |-- scripts/
| `-- styles/
|-- dist/
| |-- components/
$ npm install grunt
npm http GET https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/glob
@matt-bailey
matt-bailey / Test.js
Last active January 2, 2016 14:49
Test stuff...
console.log("Some inline code");
{
"name": "my-theme",
"version": "0.1.0",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-compass": "~0.7.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-imagemin": "~0.4.0",
@matt-bailey
matt-bailey / .gitignore
Last active January 2, 2016 14:59
Supporting files for a Beginner’s Guide to using Grunt with Magento: http://www.gpmd.co.uk/blog/a-beginner-s-guide-to-using-grunt-with-magento/
.idea/
.project
*.sublime-project
*.sublime-workspace
*.tmproj
*.bak
*.swp
*~.nib
.sass-cache/
node_modules/
@matt-bailey
matt-bailey / Gruntfile.js
Created May 8, 2015 12:26
SC5 Style Guide Generator Grunt usage instructions
module.exports = function(grunt) {
var gulp = require('gulp'),
styleguide = require('sc5-styleguide');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {