Skip to content

Instantly share code, notes, and snippets.

View newbamboo's full-sized avatar

New Bamboo newbamboo

View GitHub Profile
#!/bin/bash
#================================================================================
# /engineyard/bin/monit_merb_mpc
#================================================================================
# This script controls the multi-process Merb 1.0 service
#
# Do not forget to ensure this script is executable:
# $ chmod a+x /engineyard/bin/monit_merb_mpc
#================================================================================

Getting Started

Panda runs entirely within Amazon's Web Services, so before continuing you will need to sign up for an account and have access to EC2, S3 and SimpleDB services.

If this is the first time you've used EC2, you'll need to ensure you've setup certificates and local environment. Everything is described in Amazon's EC2 Getting Started Guide.

If you would like to run Panda on a different platform, please first follow the Local Installation Guide

Launch the AMI

---
layout: default
---
<div class="entry entry-5044">
<div class="entrytitle">
<h2><a href="{{ page.url }}">{{ page.title }}</a> <span class="author">{{ page.author }}</span></h2>
<h3>{{ page.date | date_to_string }}</h3>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Bamboo Blog - {{ page.title }}</title>
<link href="/stylesheets/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/>
---
layout: default
title: Ruby on Rails development
---
{% for post in site.posts %}
<div class="entry old_entry">
<div class="entrytitle">
<h2><a href="{{ post.url }}">{{ post.title }}</a> <span class="author">{{ post.author }}</span></h2>
<h3>{{ post.date | date_to_string }} | <a href="{{ post.url }}#disqus_thread" class="commentslink">View comments</a></h3>
@newbamboo
newbamboo / index.html
Created February 19, 2009 22:43
Index page template for our Jekyll blog
---
layout: default
title: Ruby on Rails development
---
{% for post in site.latest_posts %}
<div class="entry">
<div class="entrytitle">
<h2><a href="{{ post.url }}">{{ post.title }}</a> <span class="author">{{ post.author }}</span></h2>
<h3>{{ post.date | date_to_string }} | <a href="{{ post.url }}#disqus_thread" class="commentslink">View comments</a></h3>
server {
listen 80;
server_name blog.new-bamboo.co.uk;
client_max_body_size 10M;
root /usr/local/www/nb_blog_jekyll/_site;
rewrite ^/archives/.* /archive permanent;
set :user, "deploy"
set :deploy_to, "/usr/local/www/nb_blog_jekyll"
set :jekyll_command, "/usr/local/jekyll/bin/jekyll --lsi"
role :web, "blog.new-bamboo.co.uk"
task :deploy do
run "cd #{deploy_to}; git pull; #{jekyll_command}; exit 0"
end
@newbamboo
newbamboo / check_google_site_links.rb
Created February 16, 2009 22:29
Check if the links Google has indexed on your actually work
articles = Article.find(:all)
articles.each do |article|
published_at = "#{published_at.year}-#{published_at.month}-#{published_at.day}"
author = article.user.login
permalink = article.permalink
title = article.title
excerpt = article.excerpt
body = article.body
fp = File.open("_posts/#{'draft-' if article.published_at.nil?}#{published_at}-#{permalink}.markdown", 'w')