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
#!/bin/sh | |
# | |
# Adam Sharp | |
# Aug 21, 2013 | |
# | |
# Usage: Add it to your PATH and `git remove-submodule path/to/submodule`. | |
# | |
# Change to a directory that’s in your PATH, I used /usr/local/bin and run the following commands: | |
# | |
# $ curl -o git-remove-submodule https://gist.githubusercontent.com/azizur/10c814ae16a9d75d4e42/raw/fa7b5e9c30a0118d51625dd038e363aceefd382c/git-remove-submodule |
<?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" |
# 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 |