Skip to content

Instantly share code, notes, and snippets.

@gildegoma
gildegoma / gist:6389300
Created Aug 30, 2013
Add a line on top of files that don't include this header pattern yet
View gist:6389300
grep -LE '^PATTERN' */filename.ext | xargs -I{} dirname {} | xargs -I{} gsed -i '1s/^/PATTERN with {} dynamic\n/' {}/filename.ext
@gildegoma
gildegoma / issue with perl 5.8 for travis-ci
Created Jun 18, 2013
investigating issue with perl 5.8 for travis-ci
View issue with perl 5.8 for travis-ci
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)
View LEIN_GATLING_README.md
@gildegoma
gildegoma / gist:4108265
Created Nov 19, 2012
How to publish a cookbook to opscode community site with knife
View gist:4108265

$ 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.

@gildegoma
gildegoma / gist:4036994
Created Nov 8, 2012
Chef/Knife cheat sheet
View gist:4036994

Publish to community.opscode.com

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

View gist:4007111
@gildegoma
gildegoma / gist:1172280
Created Aug 25, 2011
Git Branch Management
View gist:1172280

Rename a local branch

git branch -m <oldname> <newname>

Delete a remote branch

$ git push origin :<branch-simple-name>

Publish a local branch (with remote tracking enabled)

@gildegoma
gildegoma / Comparison.md
Created Aug 2, 2011
Comparing Rails 3 with Symfony2, fork and add your suggestions
View Comparison.md

Rails

Pro

  • Quicker project bootstrapping

Con

You can’t perform that action at this time.