Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View gaby-mg-snippets's full-sized avatar

gaby-mg-snippets

View GitHub Profile
@gaby-mg-snippets
gaby-mg-snippets / gist:2251617
Created March 30, 2012 13:36
HTML: XHTML 1.0 Strict Starting Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title></title>
</head>
<body>
@gaby-mg-snippets
gaby-mg-snippets / gist:2320687
Created April 6, 2012 15:13
JavaScript: Self-Invoking Anonymous Function
(function() {
})();
@gaby-mg-snippets
gaby-mg-snippets / gist:6941259
Created October 11, 2013 20:11
gabymg.com/projects-custom-post-type
add_action( 'init', 'create_gaea_projects_post_type');
function create_gaea_projects_post_type()
{
register_post_type( 'gaea_project',
array(
'labels' => array(
'name' => 'Projects',
'singular_name' => 'Project'
),
@gaby-mg-snippets
gaby-mg-snippets / autotest.rb
Created January 19, 2014 15:16
Ruby: watchr wrapper script for TDD with PHPUnit
watch("models/(.*).php") do |match|
run_test %{tests/test_#{match[1]}.php}
end
watch("tests/.*.php") do |match|
run_test match[0]
end
def run_test(file)
unless File.exist?(file)
@gaby-mg-snippets
gaby-mg-snippets / vagrant_puphpet_custom_prov.sh
Last active August 29, 2015 14:01
Vagrant: PuPHPet: Custom provisioning
#!/bin/bash
composer global require fabpot/php-cs-fixer squizlabs/php_codesniffer
@gaby-mg-snippets
gaby-mg-snippets / news_daily_resume.md
Last active May 8, 2019 08:43
Newspapers Daily Resume

España

El País (1976)

El Mundo (1989)

La Vanguardia (1881)

La Voz de Galicia (1882)

@gaby-mg-snippets
gaby-mg-snippets / symfony_v2_cheat_sheet.md
Last active August 29, 2015 14:11
PHP: Symfony v2: Cheat-sheet

Symfony v2

Requirements

  • web/config.php
  • php app/check.php

Required

  • PHP 5.3.3
  • JSON enabled
@gaby-mg-snippets
gaby-mg-snippets / ubuntu_provisioning.sh
Last active August 29, 2015 14:12
Shell scripting: Ubuntu Provisioning Script
#=============================================================================
# VIRTUALIZATION SOFTWARE
#=============================================================================
#-----------------------------------------------------------------------------
# Oracle VM VirtualBox
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Vagrant
@gaby-mg-snippets
gaby-mg-snippets / composer.json
Last active August 29, 2015 14:12
PHP: Composer: Development Requirements
{
"require-dev": {
}
}
@gaby-mg-snippets
gaby-mg-snippets / workflow.md
Last active August 29, 2015 14:12
My workflow

My Workflow

  • Ensure development system has minimum requirements (ubuntu_provisioning.sh):
    • Dropbox?
    • VirtualBox + Vagrant
    • SublimeText 3
  • Check production system
    • OS
    • Web Server
  • Database