Skip to content

Instantly share code, notes, and snippets.

Dynamic Capistrano:
Is a way of writing a capistrano Capfile where roles, tasks, namespaces etc. are
dynamically generated and not much is hardcoded in the file. This allows for tremendous
amount of flexibility in creating much more powerful Capfile. This also facilitates the
reuse of roles/tasks across projects (by sharing of config files), eliminating the problems
related to duplication.
[Thanks to Alain Hoang for suggestions and feedback]
Dynamic Capistrano relies on the main Capfile and a bunch of other config files which provide:
// Dealing with named grouping in regular expressions in .net
using System;
using System.Text.RegularExpressions;
using System.Collections;
public class RegexEg1
{
static public void Main ()
{
string[] words = new string[] {
How to build mono (.NET) on Ubuntu (lucid)
==========================================
(ref: http://www.mono-project.com)
- Add the following to /etc/apt/sources.list
deb http://badgerports.org lucid man
$ sudo apt-get install gtk-sharp2
$ sudo apt-get install mono-xsp2
@perl2ruby
perl2ruby / one_liner_rpm_by_group.sh
Created March 30, 2012 16:27
List all rpm packages in all groups
ruby -lne ' puts %Q{==== group: "#{$_}" ====}; system %Q{rpm -qg "#{$_}"}' /usr/share/doc/rpm*/GROUPS

Keybase proof

I hereby claim:

  • I am perl2ruby on github.
  • I am intercal (https://keybase.io/intercal) on keybase.
  • I have a public key ASBNni9ekNTVNRRonkTGYmUbgo9KJuzd91FbVarmurOdago

To claim this, I am signing this object: