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 | |
| /** | |
| * Answering: http://lists.automattic.com/pipermail/wp-hackers/2012-August/044119.html | |
| * By: Mike Schinkel - http://about.me/mikeschinkel | |
| */ | |
| add_action( 'parse_request', 'aeromaxx_parse_request' ); | |
| function aeromaxx_parse_request( $wp ) { | |
| if ( preg_match( '#^/(draw-results|ball-statistics)/game/([^/]+)/#', $_SERVER['REQUEST_URI'], $matches ) ) { | |
| $wp->query_vars = array( | |
| 'post_type' => $matches[1], // Assumes your post types are registered with same name as your URL slugs |
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
This gist assumes:
| #!/bin/bash | |
| # Shell script to setup and install ownCloud3 on Fedora 16 (and later, hopefully) | |
| # You may try on others, but it may not work | |
| # Run it as root/sudo | |
| # Also installs PageKite (http://pagekite.net) | |
| # Any harm to any object animate/inanimate caused by this script |
| Scenario: Create an invoice | |
| Given I am an authenticated user with an admin role | |
| And a client "test client" exists with name: "test client", initials: "TTC" | |
| And a project "test project" exists with name: "test project", client: client "test client" | |
| And a ticket "test ticket" exists with project: project "test project", name: "test ticket" | |
| And a work_unit "test work unit" exists with ticket: ticket "test ticket", scheduled_at: "2010-01-01" | |
| And I am on the admin invoices page | |
| Then I should see "test client" | |
| And I follow "test client" | |
| And I fill in "global_invoiced" with "123" |
| /* | |
| * | |
| * | |
| * Simple Drupal 6 to Wordpress 3 migrating class for the modeling-languages.com portal | |
| * | |
| * | |
| * @version 0.1 10 June 2011 | |
| * @author Jordi Cabot | |
| * | |
| * |
| # JSONP callback for tweets fetched later than current (max_id) | |
| window.twitterTimelineLaterCallback = (data) -> | |
| window.app.twitterTimeline.receivedData(data, false) | |
| # JSONP callback for tweets fetched earlier than current (since_id) | |
| window.twitterTimelineEarlierCallback = (data) -> | |
| window.app.twitterTimeline.receivedData(data, true) | |
| class window.TwitterTimeline | |
| # Distance from the bottom that we ask for more tweets, distance from the |
| <?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/ |