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 | |
while getopts ":h:p:a:d:l:" opt; do | |
case $opt in | |
h) | |
HOST="$OPTARG" | |
;; | |
p) | |
PORT="$OPTARG" | |
;; |
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
export PATH=~/bin:$PATH | |
export CLICOLOR=1 | |
export LSCOLORS='Axfxcxdxbxegedabagacad' | |
parse_git_branch () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then | |
gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p') | |
else |
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
[user] | |
name = Tom Densham | |
email = [email protected] | |
[core] | |
quotepath = false | |
excludesfile = /Users/tomdensham/.gitignore | |
[mergetool] | |
keepBackup = true | |
[alias] | |
l50 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R" |
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
.DS_Store | |
# Thumbnails | |
._* | |
# Files that might appear on external disk | |
.Spotlight-V100 | |
.Trashes | |
# It's better to unpack these files and commit the raw source because |
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 | |
CONFIGDIR="$HOME/.skeleton" | |
WORKINGDIR=$(pwd) | |
if [ $# -lt 1 ] | |
then | |
echo "Usage : $0 [pattern]" | |
exit | |
fi |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<layout> | |
<catalog_category_default translate="label"> | |
<reference name="content"> | |
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml"> | |
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> | |
<action method="setColumnCount"><columns>4</columns></action> | |
</block> | |
</block> | |
</reference> |
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 | |
abstract class Message | |
{ | |
protected static $messages = array(); | |
public static function get($key, $default = null) | |
{ | |
$return = \Arr::get(static::$messages, $key, $default); | |
\Arr::delete(static::$messages, $key); |
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
# Magento CE 1.4.1.1 | |
# Be sure to replace "" with your table prefix | |
SET FOREIGN_KEY_CHECKS=0; | |
############################## | |
# SALES RELATED TABLES | |
############################## | |
TRUNCATE `sales_flat_creditmemo`; | |
TRUNCATE `sales_flat_creditmemo_comment`; |
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 | |
# Get the path for the .bashrc file from the prompt or set it as being in the users home dir. | |
BASHRC="${1:=~/.bashrc}" | |
# Use sed to remove the comment from the force color line in the .bashrc file. | |
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' $BASHRC | |
# BONUS: Uncomment to change the default color of the prompt. | |
#sed -i 's/1;32m/1;31m/g' |
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
assets/* | |
!assets/.htaccess | |
!assets/error-404.html | |
!assets/error-500.html | |
!assets/web.config | |
_ss_environment.php | |
tools/phing-metadata |
OlderNewer