This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| # use vagrant-omnibus to install chef | |
| config.omnibus.chef_version = :latest | |
| # 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. |
This file contains hidden or 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
| Error retrieving universe from source: https://api.berkshelf.com | |
| * [Berkshelf::APIClient::ServiceUnavaiable] service unavailable at: https://api.berkshelf.com | |
| E, [2014-05-23T21:28:13.076316 #12560] ERROR -- : Actor crashed! | |
| NoMethodError: undefined method `cookbook' for nil:NilClass | |
| /var/lib/jenkins/.rvm/gems/ruby-2.0.0-p481@tmux-cookbook-0/gems/berkshelf-3.1.2/lib/berkshelf/installer.rb:95:in `install' | |
| /var/lib/jenkins/.rvm/gems/ruby-2.0.0-p481@tmux-cookbook-0/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `public_send' | |
| /var/lib/jenkins/.rvm/gems/ruby-2.0.0-p481@tmux-cookbook-0/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:26:in `dispatch' | |
| /var/lib/jenkins/.rvm/gems/ruby-2.0.0-p481@tmux-cookbook-0/gems/celluloid-0.16.0.pre/lib/celluloid/calls.rb:63:in `dispatch' | |
| /var/lib/jenkins/.rvm/gems/ruby-2.0.0-p481@tmux-cookbook-0/gems/celluloid-0.16.0.pre/lib/celluloid/cell.rb:60:in `block in invoke' | |
| /var/lib/jenkins/.rvm/gems/ruby-2.0.0-p481@tmux-cookbook-0/gems/celluloid-0.16.0.pre/lib/celluloid/c |
This file contains hidden or 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
| --- | |
| driver: | |
| name: docker | |
| privileged: true | |
| provisioner: | |
| name: chef_zero | |
| platforms: | |
| - name: ubuntu-14.04 | |
| driver_config: |
This file contains hidden or 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
| #!/bin/sh | |
| # Cleanup docker files: untagged containers and images. | |
| # | |
| # Use `docker-cleanup -n` for a dry run to see what would be deleted. | |
| untagged_containers() { | |
| # Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1. | |
| docker ps -a | awk '$2 ~ "[0-9a-f]{12}" {print $'$1'}' | |
| } |
This file contains hidden or 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
| ➜ ~ ls -l /usr/bin/ | grep chefdk | |
| lrwxrwxrwx 1 root root 21 apr 16 13:31 berks -> /opt/chefdk/bin/berks | |
| lrwxrwxrwx 1 root root 20 apr 16 13:31 chef -> /opt/chefdk/bin/chef | |
| lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-apply -> /opt/chefdk/bin/chef-apply | |
| lrwxrwxrwx 1 root root 27 apr 16 13:31 chef-client -> /opt/chefdk/bin/chef-client | |
| lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-shell -> /opt/chefdk/bin/chef-shell | |
| lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-solo -> /opt/chefdk/bin/chef-solo | |
| lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-zero -> /opt/chefdk/bin/chef-zero | |
| lrwxrwxrwx 1 root root 23 apr 16 13:31 fauxhai -> /opt/chefdk/bin/fauxhai | |
| lrwxrwxrwx 1 root root 26 apr 16 13:31 foodcritic -> /opt/chefdk/bin/foodcritic |
This file contains hidden or 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
| ➜ ~ ls -l /usr/bin/ | grep chefdk | |
| lrwxrwxrwx 1 root root 21 apr 16 13:31 berks -> /opt/chefdk/bin/berks | |
| lrwxrwxrwx 1 root root 20 apr 16 13:31 chef -> /opt/chefdk/bin/chef | |
| lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-apply -> /opt/chefdk/bin/chef-apply | |
| lrwxrwxrwx 1 root root 27 apr 16 13:31 chef-client -> /opt/chefdk/bin/chef-client | |
| lrwxrwxrwx 1 root root 26 apr 16 13:31 chef-shell -> /opt/chefdk/bin/chef-shell | |
| lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-solo -> /opt/chefdk/bin/chef-solo | |
| lrwxrwxrwx 1 root root 25 apr 16 13:31 chef-zero -> /opt/chefdk/bin/chef-zero | |
| lrwxrwxrwx 1 root root 23 apr 16 13:31 fauxhai -> /opt/chefdk/bin/fauxhai | |
| lrwxrwxrwx 1 root root 26 apr 16 13:31 foodcritic -> /opt/chefdk/bin/foodcritic |
This file contains hidden or 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
| [user] | |
| email = espada.jorge@gmail.com | |
| name = Jorge Espada | |
| [push] | |
| default = current | |
| [color] | |
| ui = auto | |
| branch = auto | |
| diff = auto | |
| interactive = auto |
This file contains hidden or 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
| var self = this; | |
| this.clickFocusable = true; | |
| this.el.dblclick(function() { | |
| if (self.clickFocusable) { | |
| self.focus(); | |
| } | |
| }); | |
| }; | |
| types.View = View; |
This file contains hidden or 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
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit" |
This file contains hidden or 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
| import rg | |
| class Robot: | |
| def act(self, game): | |
| # if we're in the center, stay put | |
| if self.location == rg.CENTER_POINT: | |
| return ['guard'] | |
| # if there are enemies around, attack them | |
| for loc, bot in game.robots.iteritems(): |