Skip to content

Instantly share code, notes, and snippets.

View gaby-mg's full-sized avatar

Joaquín-Gabriel Molina Goigoux gaby-mg

View GitHub Profile
@gaby-mg
gaby-mg / basic_install.sh
Last active February 19, 2016 16:57
WP: Basic Install Sript with wp-cli
#!/bin/bash
# Usage: basic-install [OPTIONS] file
#
# Index:
#
# 0.- Initial Setup and Functions
# 1.- Set your server correctly
# 2.- Install latest WordPress version
# 3.- Set up anti-spam and security measures
@gaby-mg
gaby-mg / css-stats-ack.sh
Created November 24, 2012 12:50 — forked from pjkix/css-stats-ack.sh
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@gaby-mg
gaby-mg / composer.json
Created October 29, 2012 21:07
PHP: Composer: TDD environment
{
"require": {
"phpunit/phpunit": "3.7.*"
}
}
@gaby-mg
gaby-mg / datecp
Created October 29, 2012 11:41
Bash: copy file, appending date and time
#!/bin/bash
# This will copy a file, appending the date and time
# to the end of the file name.
date_formatted=$(date +%m_%d_%y-%H.%M.%S)
cp -iv $1 $2.$date_formatted
@gaby-mg
gaby-mg / sass-color-theory
Last active October 12, 2015 03:47
Sass: Color Management with SaSS
/*
* Color Management with Sass
* ---------------------------
* An exploration of color management using Sass
*/
@gaby-mg
gaby-mg / JS_IIFE
Created October 26, 2012 20:15
JS: Anonymous Immediately-Invoked Function Expression (IIFE)
(function(){ /* code */ }());
@gaby-mg
gaby-mg / gist:3279306
Created August 6, 2012 23:04
JS: Grunt: Initial code
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Project metadata, used by some directives, helpers and tasks.
meta: {},
// Lists of files to be concatenated, used by the "concat" task.
concat: {},
@gaby-mg
gaby-mg / gist:3259577
Created August 4, 2012 19:48
WP: style.css File Headers
/*
Theme Name:
Theme URI:
Description:
Author: gaby-mg
Author URI: http://wordpress.org/support/profile/gaby-mg
Version:
Tags:
License: