Skip to content

Instantly share code, notes, and snippets.

View thor48's full-sized avatar

Dan Thorberg thor48

  • August Ash Inc.
View GitHub Profile
@thor48
thor48 / 01-README.md
Last active August 29, 2015 14:27 — forked from petemcw/01-README.md
Mac OS X LEMP Configuration

Mac OS X LEMP Configuration

This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.

Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.

Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup

Nginx

# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management

A guide for installing modules with the MAGE installer

Magento Mage installer

Adjust permissions

Make the mage package executable

LOCAL ONLY

chmod 777 ./mage

Truncate Text

truncate($STRING, $LENGTH); ?>

Ways to print attributes

  • this should work for drop downs and multi-select
getAttributeText('attribute_name'); ?>
  • this should work for text fields