Skip to content

Instantly share code, notes, and snippets.

View bryanl's full-sized avatar
🚩
Out in the streets

Bryan Liles bryanl

🚩
Out in the streets
View GitHub Profile
$ ssh db01.ops.groupsite.com
ssh: Could not resolve hostname db01.ops.groupsite.com: nodename nor servname provided, or not known
➜ ~/Development/collectivex/cloud-provision
$ host db01.ops.groupsite.com
db01.ops.groupsite.com has address 174.143.236.242
➜ ~/Development/collectivex/cloud-provision
$ ssh 174.143.236.242
Linux db01 2.6.24-23-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86_64
package aes4java;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author bryan
18908 nobody 15 0 968m 740m 6588 S 29.2 9.3 2:50.07 mongrel_rails
19009 nobody 16 0 956m 732m 6024 R 22.3 9.2 3:18.58 mongrel_rails
18860 nobody 15 0 723m 496m 6056 S 21.9 6.2 2:40.48 mongrel_rails
22454 nobody 15 0 574m 414m 5468 S 21.3 5.2 0:36.42 mongrel_rails
22519 nobody 15 0 604m 443m 5452 S 21.3 5.6 0:37.10 mongrel_rails
22551 nobody 16 0 422m 262m 5464 R 16.6 3.3 0:22.18 mongrel_rails
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
1 read views open inside InnoDB
Main thread process no. 21476, id 1171605824, state: sleeping
Number of rows inserted 1417, updated 3228, deleted 7, read 22436196
0.92 inserts/s, 2.35 updates/s, 0.00 deletes/s, 42077.59 reads/s
if subgroup.save
render :json => subgroup.to_json(:only => [:id, :name, :identifer]),
:status => :created, :location => subgroup
else
render :json => {:msg => "cannot create subgroup"}, :status => 400
end
def index
if @membership or @group.non_private?
summary
render :action=>'summary'
elsif @group.perm_public_blog?
@posts = @group_scope.blog_posts.published.category(params[:category]).paginate :page=>params[:page]
@blog_categories = @group_scope.blog_categories.find :all
@content_layout = @group.content_layouts.cached_by_location('sidebar')
@sidebar_section = 'blog'
render :template=>'blog/index'
def index
if @membership or @group.non_private?
summary
render :action=>'summary'
elsif @group.perm_public_blog?
@posts = @group_scope.blog_posts.published.category(params[:category]).paginate :page=>params[:page]
@blog_categories = @group_scope.blog_categories.find :all
@content_layout = @group.content_layouts.cached_by_location('sidebar')
@sidebar_section = 'blog'
render :template=>'blog/index'
remote_file "/tmp/ruby-enterprise_1.8.6-20090610_amd64.deb" do
source "ruby-enterprise_1.8.6-20090610_amd64.deb"
mode "0644"
end
package "ruby-enterprise" do
source "/tmp/ruby-enterprise_1.8.6-20090610_amd64.deb"
end
Feature: add banners
As an affiliate administrator
I want to add banners
So the affiliates have an inventory to choose from
Scenario: add a new banners
When I go the banner management page
And I follow "Create new banner"
And I attach the file at "/tmp/foo" to "Banner Imanage"
Feature: add banners
As an affiliate administrator
I want to add banners
So the affiliates have an inventory to choose from
Scenario: add a new banners
When I go the banner management page
And I follow "Create new banner"
And I attach the file at "/tmp/foo" to "Banner Imanage"