I hereby claim:
- I am bencaron on github.
- I am bencaron (https://keybase.io/bencaron) on keybase.
- I have a public key whose fingerprint is 09C0 CE5A 0B58 49F7 C4B8 E786 0E18 38ED B03A B67D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env ruby | |
| # | |
| # Extract URI from an Apache log and generate a | |
| # full URL file (like for exemple load-testing with Siege) | |
| # | |
| # Usage: | |
| # extract-url.rb your.domain.name.com logfile [logfile logfile logfile] | |
| # | |
| targetdomain = ARGV.shift |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # All Vagrant configuration is done here. The most common configuration | |
| # options are documented and commented below. For a complete reference, | |
| # please see the online documentation at vagrantup.com. |
| * * * * * /usr/bin/curl http://placekitten.com/g/400/600 -o $HOME/kitten && /usr/bin/open $HOME/kitten |
| #!/bin/bash | |
| # Watch for changes in the $SASS_DIR | |
| # If anything change, compile the sass files to css | |
| SASS_DIR="sass/" | |
| STAGED=`git diff --cached --name-only` | |
| echo $STAGED | if grep --quiet "$SASS_DIR" | |
| then |
| #/bin/sh | |
| # Merci FreeFallFred! | |
| DIFF="/usr/bin/diff" | |
| LEFT_LABEL="$3" | |
| RIGHT_LABEL="$5" | |
| LEFT="$6" | |
| RIGHT="$7" | |
| OUTPUT=`$DIFF $LEFT -L "$LEFT_LABEL" $RIGHT -L "$RIGHT_LABEL" -ubB` |
| #!/usr/bin/env ruby | |
| def find_deps(cookbook_dir) | |
| nel = Hash.new { |h, k| h[k] = [] } | |
| Dir.glob("#{cookbook_dir}/*/").each do |r| | |
| deps_for(r, nel) | |
| end | |
| nel | |
| end |
| Vagrant::Config.run do |config| | |
| config.vm.box = "lucid32" | |
| config.vm.boot_mode = :gui | |
| # Enable provisioning with chef solo, specifying a cookbooks path (relative | |
| # to this Vagrantfile), and adding some recipes and/or roles. | |
| config.vm.provision :chef_solo do |chef| | |
| chef.cookbooks_path = "cookbooks" | |
| chef.add_recipe "couchdb" | |