These set of scripts are for Magento 1. For Magento 2, see this Gist.
Git Flow is an extension to Git that provides extra functionality and simple commands that force you into a structured and proper branching model. Git Flow is not required and in fact all commands ran by Git Flow can be done using standard Git commands. Git Flow just makes everything easier. Git Flow only needs to be installed on the developer's machine (or wherever development happens) and not on any production server.
Git Flow can be installed alongside TortoiseGit without issue, but there are some steps needed.
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
class PhpunitController extends Controller | |
{ | |
public function runTestsAction($filterClass = null) | |
{ | |
// Make sure PHPUnit is autoloaded | |
require_once('PHPUnit/Autoload.php'); | |
set_time_limit(0); | |
$version = \PHPUnit_Runner_Version::id(); |
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
@import compass/reset | |
@import compass/css3/border-radius | |
table | |
border: none | |
border-collapse: separate | |
th, td | |
padding: 5px | |
thead | |
background-color: #f2f6fa |
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
<div class="pager"> | |
{% if first is defined %} | |
<span class="first"> | |
{% if current != first and first < 0 %} | |
<a href="{{ path(route, query|merge({'page': first})) }}">first</a> | |
{% else %} | |
first | |
{% endif %} | |
</span> | |
{% endif %} |
<?php
/**
* @method DbTable_Row_Foo createRow()
*/
class DbTable_Foo extends Zend_Db_Table_Abstract
{
protected $_primary = 'foo_id';
protected $_name = 'foo';
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/bash | |
# | |
# @author: Chris Jones <[email protected]> | |
# @version: 1.1.0 | |
# | |
# Rackspace Cloud Sites only allows running scripts via their web-based "cron" tool. | |
# FTP this script into your Web directory and add it to the scheduled tasks section. | |
# Set the "Command Language" to: perl | |
# Set the "Command to Run" to: migrate.sh refreshdb |
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
<?php | |
namespace Example\AppBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller, | |
Symfony\Component\HttpFoundation\Request, | |
Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
class ExampleController extends Controller | |
{ |
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
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
# file: hooks/post-receive-pivotal | |
require 'net/http' | |
require 'nokogiri' | |
# Ruby 1.8.7 | |
class String | |
def force_encoding(enc) |
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/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then | |
exit 0 |
OlderNewer