- Quicker project bootstrapping
:%s/foo/bar/g
:%s/pick/reword/g
more example at http://vim.wikia.com/wiki/Search_and_replace
Prerequisites:
- clone opscode/chef-repo
- setup .chef/knife.rb (private key file, ...)
- (on mac, with only vagrant and chef-solo): mkdir /var/chef + chown it... (this is the temporary folder used by
knife ... share
)
Example:
knife cookbook site share "typesafe-stack" "Programming Languages" -VV -u gildegoma
$ knife cookbook site share sbt-extras "Programming Languages" -u gildegoma -V
from cloned working copy of opscode/chef-repo with a custom .chef
folder that contains your private key and your metadata in knife.rb.
Gatling is an awesome modern load-testing framework written in Scala with asyncronous actors. It's been designed by the folks at Excilys and had been gaining some attention recently.
There a few ways you can get started with Gatling:
- bundle tarball
- maven plugin or achetype
- Scala build tool
Each of these has it's pros and cons, so I have figured yet another way that is meant to be quite easy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fetching perl 5.8.9 as /home/travis/perl5/perlbrew/dists/perl-5.8.9.tar.bz2 | |
Installing /home/travis/perl5/perlbrew/build/perl-5.8.9 into ~/perl5/perlbrew/perls/5.8 | |
This could take a while. You can run the following command on another shell to track the status: | |
tail -f ~/perl5/perlbrew/build.perl-5.8.9.log | |
5.8 is successfully installed. | |
[2013-06-18T09:14:27+00:00] INFO: bash[installing perl-5.8.9 as 5.8 with Perlbrew arguments: --notest] ran successfully | |
[2013-06-18T09:14:27+00:00] INFO: Processing bash[preinstall Dist::Zilla via cpanm] action run (perlbrew::multi line 30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -LE '^PATTERN' */filename.ext | xargs -I{} dirname {} | xargs -I{} gsed -i '1s/^/PATTERN with {} dynamic\n/' {}/filename.ext |