Skip to content

Instantly share code, notes, and snippets.

@mizzy
mizzy / main.go
Created June 9, 2014 05:34 — forked from fujiwara/main.go
package main
import (
"encoding/json"
"github.com/mizzy/consul-catalog"
"log"
"os"
"reflect"
"time"
)
1) Failure:
TestPowerAssert#test_nginx_installed [power_assert.rb:34]:
assert { package('nginx').installed?(nil, nil) }
|
false

consul 起動

$ consul agent -data-dir /tmp/consul -server -bootstrap

confd 用設定ファイル

$ cat ~/confd/conf.d/myconfig.toml

modules/foo/manifests/init.pp

class foo {
  define bar() {
    notice("**********************************************")
    notice("Calling: foo::bar")
    notice("module_name: $module_name")
    notice("caller_module_name: $caller_module_name")
  }
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
config.vm.provision :serverspec do |spec|
spec.pattern = '*_spec.rb'
end
require 'serverspec'
include SpecInfra::Helper::DetectOS
include SpecInfra::Helper::Exec
describe package('nginx') do
it { should be_installed }
end
describe service('nginx') do
it { should be_enabled }
it { should be_running }
end
tap phinze/homebrew-cask || true
tap homebrew/versions|| true
update || true
install brew-cask || true
install git || true
install ag || true
install hub || true
install rbenv || true
install ruby-build || true
@mizzy
mizzy / 0_reuse_code.js
Created March 20, 2014 06:40
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console