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
ls -l | grep ^- | awk '{print $8}' |
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/bash | |
#For creating a code review diff. Making sure that no debugging code is located in the diff. | |
#This file will not create the diff if there are dump, print_r or NOCOMMIT statements. | |
#As echo and alert statements may be valid code, a warning is generated and a diff is made. | |
cd ~/whitelabel | |
branchName=$2 | |
diffName=$1 |
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/bash | |
for args in $@ | |
do | |
case "$args" in | |
"-f"|"--force") | |
force=true | |
;; | |
esac |
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/bash | |
cd $1 | |
for f in $(ls -l | grep -v ^d | awk '{print $8}') | |
do | |
echo "Running " $f | |
phpunit $f | |
echo | |
echo "*********************************" |
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
for x in `svn status | awk '{print $2}'`; do cp $x ../<new_branch>/$x; done |
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/bash | |
for args in $@ | |
do | |
case "$args" in | |
"-f"|"--force") | |
force=true | |
;; | |
esac |
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
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="<path to jasmine.css>"> | |
<script type="text/javascript" src="<path to jasmine.js>"></script> | |
<script type="text/javascript" src="<path to jasmine-html.js>"></script> | |
<script type="text/javascript" src="<path to source>"></script> | |
<script type="text/javascript" src="<path to spec>"></script> | |
</head> | |
<body> |
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
find . -type f | grep \.css$ | egrep -v "(tiny_mce|jquery|tinymce|scss)" | sed 'p;s/\.css/\.scss/' | xargs -n2 git mv |
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
<?php | |
define('__PHPUNIT_PHAR_ROOT__', 'phar:///usr/local/bin/phpunit.phar'); | |
spl_autoload_register( | |
function ($class) | |
{ | |
static $classes = NULL; | |
if ($classes === NULL) { | |
$classes = array( | |
'file_iterator' => '/php-file-iterator/Iterator.php', |