Skip to content

Instantly share code, notes, and snippets.

View kisoku's full-sized avatar

Mathieu Sauve-Frankel kisoku

View GitHub Profile
@kisoku
kisoku / .kitchen.yml
Created April 14, 2014 19:04
COOK-4556
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-12.04
#!/bin/sh
bin_path=/opt/ruby-210/embedded/bin
update-alternatives --install /usr/bin/ruby ruby $bin_path/ruby 10 \
--slave /usr/bin/irb irb $bin_path/irb \
--slave /usr/bin/erb erb $bin_path/erb \
--slave /usr/bin/rdoc rdoc $bin_path/rdoc \
--slave /usr/bin/ri ri $bin_path/ri \
--slave /usr/bin/testrb testrb $bin_path/testrb \
@kisoku
kisoku / apt_repo_management_
Created June 1, 2014 01:59
Apt Repository Managers
Apt Repository Managers
* reprepro - https://launchpad.net/reprepro
* freight - https://github.com/rcrowley/freight
* prm - https://github.com/dnbert/prm
* depot - https://github.com/coderanger/depot
[Sun, 22 Feb 2009 13:02:38 +0900] INFO: Loading plugin openbsd::network
{"127.0.0.1"=>{"netmask"=>"255.0.0.0", "family"=>"inet"}}
/home/msf/git/ohai/lib/ohai/plugins/openbsd/network.rb:54:in `from_file': undef
ned method `<<' for {"127.0.0.1"=>{"netmask"=>"255.0.0.0", "family"=>"inet"}}:M
sh (NoMethodError)
from /home/msf/git/ohai/lib/ohai/plugins/openbsd/network.rb:25:in `each
from /home/msf/git/ohai/lib/ohai/plugins/openbsd/network.rb:25:in `from
file'
from ./bin/../lib/ohai/mixin/command.rb:185:in `[]'
from ./bin/../lib/ohai/mixin/command.rb:185:in `popen4'
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin os
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin ruby
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin languages
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin kernel
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin command
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin ec2
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin hostname
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin openbsd::hostname
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin network
[Sun, 22 Feb 2009 15:22:54 +0900] INFO: Loading plugin openbsd::network
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin os
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin ruby
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin languages
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin kernel
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin command
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin ec2
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin hostname
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin openbsd::hostname
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin network
[Sun, 22 Feb 2009 15:25:15 +0900] INFO: Loading plugin openbsd::network
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin os
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin ruby
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin languages
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin kernel
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin command
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin ec2
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin hostname
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin openbsd::hostname
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin network
[Wed, 11 Mar 2009 13:43:17 +0900] INFO: Loading plugin openbsd::network
module Sass::Script
module Functions
def base_color
Sass::Script.parse($PICKER_BASE_COLOR, 1, 1, "PICKER_BASE_COLOR")
end
end
end
Index: ruby.port.mk
===================================================================
RCS file: /cvs/ports/lang/ruby/ruby.port.mk,v
retrieving revision 1.22
diff -u -p -r1.22 ruby.port.mk
--- ruby.port.mk 11 Aug 2009 07:27:30 -0000 1.22
+++ ruby.port.mk 11 Aug 2009 09:02:23 -0000
@@ -2,20 +2,21 @@
# ruby module
$ ack net_counters
darwin/network.rb
171:net_counters = Mash.new
179: net_counters[ifname] = Mash.new unless net_counters[ifname]
180: net_counters[ifname] = { :rx => { :bytes => $5, :packets => $3, :errors => $4, :drop => 0, :overrun => 0, :frame => 0, :compressed => 0, :multicast => 0 },
187:counters[:network][:interfaces] = net_counters
freebsd/network.rb
85:net_counters = Mash.new
97: net_counters[$1] = Mash.new unless net_counters[$1]