Quantcast
Channel: House 9
Browsing index pages (29 articles)

Puppet Solo (AKA: supply_drop)

Similar to knife-solo for use with chef, supply_drop allows you to provision servers using puppet without the need for a puppet master server. It uses capistrano for executing commands on the remote...

View Article


WAL-e chef cookbook

Postgres has various backup and restore optionshttp://www.postgresql.org/docs/9.2/static/backup.htmlDo you have a recovery plan in case your Postgres server crashes - your daily pg_dump is probably not...

View Article


Vagrant and puppet postgres 9.2 on ubuntu

Some vagrant configuration to install postgres 9.2 using puppetsee https://gist.github.com/house9/5762219.jssee...

View Article

Vagrantfile for setting up multiple machines with chef configuration

Example Vagrantfile below for setting up multiple virtual machines and using chef to provision themYour reader does not support javascript - please view configuration here -...

View Article

Image may be NSFW.
Clik here to view.

HipChat is now free!

Just got an email from HipChat - now free for small groups - awesome!

View Article


> random tricks you can do with Rails

There are bunch of really good nuggets in this presentation:http://www.confreaks.com/videos/889-railsconf2012-ten-things-you-didn-t-know-rails-could-do...

View Article

Ruby on Rails continuous integration (CI) with Jenkins the easy way with Chef...

Do you need a CI build setup for your Ruby on Rails app?Here are some chef / knife solo scripts that will deploy a Jenkins server to run your CI build - you could be up and running in less than 1/2 an...

View Article

rails :remote => true jQuery events

I constantly find myself looking these up, saving this link for future referencehttps://github.com/rails/jquery-ujs/wiki/ajaxcontains all of the rails custom jQuery events for remote forms, such as...

View Article


Sending email with Rails Mailers, The Random bits...

See the rails guides and railscasts for getting started with Rails Mailers; this article includes some additional information on Rails Mailers not included in those articles.RailsCasts:...

View Article


Image may be NSFW.
Clik here to view.

Setting up a C.I. build (Continuous Integration) for a Ruby on Rails application

It has never been easier than with Semaphore - Hosted Continuous Integrationhttps://semaphoreapp.com/How easy is itadd semaphore ssh key to your github repothen semaphore automatically determines your...

View Article

Image may be NSFW.
Clik here to view.

Git Log Formatting

The git log command is great and has tons of good information, but the output doesn't give you that nice 'overview' of the commit history, too much detail on too many linesI've been using the following...

View Article

Helper script to delete git tags locally and remote

Might be useful to others, delete a bunch of git tags - remote and locallyYour reader does not render gists; view code here -...

View Article

414 Request-URI Too Large

How to configure nginx to accept larger querystring requestsIncrease the 'large_client_header_buffers'This is located in the 'http' section of the configurationExample:    http {            # override...

View Article


Unofficial Twitter Bootstrap Documentation

Unofficial Twitter Bootstrap Documentationhttp://unofficial-twitter-bootstrap-documentation.com/The current project I am working on is running bootstrap 2.0.2 and after the release of 2.1.0 the online...

View Article

Rails - ActiveRecord created_by and updated_by gem

Often your application will want to track who created and updated your data.On a previous rails 2 project I used a plugin called userstamp which worked well, but until recently it did not support rails...

View Article


postgres: random useful things

Run sql statements from the command line, use the -c flagcreate a random valuecrazy updates using regexp_matches

View Article

postgres: terminate all database connections

Using psql from the command line you can terminate all connections to a databaseComes in handy when you want to do things like restore your staging or development...

View Article


Git Workflow

This is the current git workflow we are using at work, your mileage may vary:Your reader does not support javascript - see...

View Article

Inspect all jQuery events on an element

Very useful$("SELECTOR").data("events");All bound event handlers are stored in the elements data context under the events keyThis can be very useful when debugging with tools like...

View Article

Get table and column information in postgres

Use the information_schema catalog - http://www.postgresql.org/docs/9.1/static/information-schema.htmlGet table and columns from the public schemaselect tables.table_name, columns.column_namefrom...

View Article
Browsing index pages (29 articles)


Latest Images