Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| <?php | |
| class Model_Acl extends Zend_Acl { | |
| public function __construct() { | |
| // define Roles | |
| $this->addRole(new Zend_Acl_Role('guest')); // not authenicated | |
| $this->addRole(new Zend_Acl_Role('member'), 'guest'); // authenticated as member inherit guest privilages | |
| $this->addRole(new Zend_Acl_Role('admin'), 'member'); // authenticated as admin inherit member privilages |
| <?php | |
| /* | |
| PHP command-line shell script to access the WordPress database and print out the list of active plugins. | |
| SYNTAX: | |
| php wp-active-plugins.php $host $db $user $pw | |
| For example: |
| <?php | |
| /* | |
| Plugin Name: Employee List | |
| Description: Leverages an existing "employee" custom post type to create a shortcode for a list of employees | |
| Version: 0.1 | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ | |
| function tampa_employee_list() { |
| <?php /* | |
| ************************************************************************** | |
| Plugin Name: jQuery Lightbox For Native Galleries | |
| Plugin URI: http://www.viper007bond.com/wordpress-plugins/jquery-lightbox-for-native-galleries/ | |
| Description: Makes the native WordPress galleries use a lightbox script called <a href="http://colorpowered.com/colorbox/">ColorBox</a> to display the fullsize images. | |
| Version: 3.2.2 | |
| Author: Viper007Bond | |
| Author URI: http://www.viper007bond.com/ |
| // ========================= | |
| // Example 1: using a @mixin | |
| // ========================= | |
| // SCSS: | |
| @mixin a_pink_box() { | |
| float: left; | |
| display: block; | |
| color: pink; |
| <?php | |
| /* | |
| Plugin Name: WPSE 17728 | |
| Plugin URI: http://wordpress.stackexchange.com/questions/17728/large-image-size-is-cropped-not-proportional | |
| Description: Large image size is cropped, not proportional? | |
| Author: jimilesku | |
| */ | |
| add_filter( 'intermediate_image_sizes_advanced', 'wpse17728_intermediate_image_sizes_advanced' ); | |
| function wpse17728_intermediate_image_sizes_advanced( $sizes ) |
| /* | |
| * | |
| * | |
| * Simple Drupal 6 to Wordpress 3 migrating class for the modeling-languages.com portal | |
| * | |
| * | |
| * @version 0.1 10 June 2011 | |
| * @author Jordi Cabot | |
| * | |
| * |
| <?php | |
| /* | |
| Plugin Name: Disable plugins when doing local dev | |
| Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
| Version: 0.1 | |
| License: GPL version 2 or any later version | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ |
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI