Skip to content

Instantly share code, notes, and snippets.

@romansklenar
romansklenar / REAME.md
Last active May 31, 2024 18:30
How to set up your VPS with Chef Solo

How to set up your VPS with Chef Solo

1. What is it?

There are many different provisioning tools out there, the most popular of which are Chef and Puppet. Chef uses Ruby, Puppet uses a DSL (Domain Specific Language), there are others that use simple bash too, but today we're going to focus on Chef Solo.

2. Dependencies

To get Chef working properly on your local machine you need a few things.

Make sure you use Ruby 1.9.x and not Ruby 2.x as you will get errors with the json 1.6.1 gem on 2.x. Use rbenv or RVM to manage several different Rubies on the one machine.

#!/usr/bin/env python
# active-celery.py --- get the active tasks being processed from celery and
# sort by how long they have been running (descending)
from celery import Celery
from time import time
if __name__ == '__main__':
celery = Celery('monitoring')
@cwsaylor
cwsaylor / gist:90971
Created April 6, 2009 22:07
Capistrano deployment campfire notifier
# Requires config file config/campfire.yml with the following settings:
# account: "foo"
# email: "bar@baz.com"
# password: "changeme"
# ssl: false
# room: "foobar"
require 'tinder'