Chef presently runs the resources in a recipe serially, one after the next. In this proposal, user-selected groups of resources will run their actions in parallel.
To run a group of resources in parallel, you write it this way:
Chef presently runs the resources in a recipe serially, one after the next. In this proposal, user-selected groups of resources will run their actions in parallel.
To run a group of resources in parallel, you write it this way:
# I'm sure this can all be replaced with a one liner, buried deep in chef somewhere. | |
# Actually, probably Chef::Client. | |
require 'json' | |
require 'chef' | |
require 'chef/application/solo' | |
require 'chef/knife/deps' | |
def setup_node(environment, name, node_config_path) | |
Chef::Config[:config_file] = ".chef/knife.rb" |
Note: total experiment and hack, looks nasty, could be awesome:
kitchen.local.yml
into $HOME/.kitchen/config.yml
brew install polipo
, with Ubuntu: apt-get install polipo
)polipo-start
and polipo-console
somewhere useful (perhaps $HOME/bin
?)When compiling ruby from source tarball by hand, if you got executable host ruby is required. use --with-baseruby option. Then this can be the reason.
make distclean
(assume you configure'ed once) then configure
and make
, got
executable host ruby is required. use --with-baseruby option
distclean
cleans out some file generated from erb, which requiring a existing ruby.
#!/usr/bin/env ruby | |
# Translates an objective C method call on the pasteboard, | |
# as copied from the docs, into MacRuby syntax, placing it | |
# back on the pasteboard. | |
# @example | |
# '+ (NSColor *)colorWithCalibratedRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha' | |
# => 'colorWithCalibratedRed(red, green:green, blue:blue, alpha:alpha)' | |
string = `pbpaste` |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
# MySQL. Versions 4.1 and 5.0 are recommended. | |
# | |
# Install the MySQL driver: | |
# gem install mysql2 | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
development: | |
adapter: mysql2 | |
encoding: utf8 |
#!/bin/sh | |
# Build Zsh from sources on Ubuntu. | |
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
# Some packages may be missing | |
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
git clone git://zsh.git.sf.net/gitroot/zsh/zsh | |
cd zsh |
#!/usr/local/bin/macruby | |
# -*- coding: utf-8 -*- | |
# Captures a photo using iSight. | |
framework "Cocoa" | |
framework "QTKit" | |
class AppController | |
def initialize(filename=nil) | |
options = {} |
package main | |
import ( | |
"exec" | |
"log" | |
"os" | |
"syscall" | |
"unsafe" | |
) |