Skip to content

Instantly share code, notes, and snippets.

View yudai's full-sized avatar

Iwasaki Yudai yudai

View GitHub Profile
@yudai
yudai / gist:6308528
Created August 22, 2013 15:15
dns-yml.all の変更点。director_uuidは`bosh stats`コマンドで表示されるUUIDに、各URLのIPアドレスはCFのエンドポイントのIPアドレスに、passwordは`bosh cf show attributes`コマンドで表示されるパスワードの値で修正してください。
diff --git a/examples/dns-all.yml b/examples/dns-all.yml
index d7c27e6..1e614ec 100644
--- a/examples/dns-all.yml
+++ b/examples/dns-all.yml
@@ -1,10 +1,10 @@
---
name: cf-services-contrib
-director_uuid: DIRECTOR_UUID # CHANGE
+director_uuid: 4dcab38b-3939-4d13-f3ad-dbb38c7b5c939 # CHANGE
@yudai
yudai / local.rake
Created September 26, 2013 06:04
For building stemcells locally. Put this rake file as `bosh-dev/lib/bosh/dev/tasks/local.rake`, and run `sudo CANDIDATE_BUILD_NUMBER=3939 bundle exec rake "local:build_microbosh[openstack,ubuntu]"`.
namespace :local do
desc 'build MicroBOSH Stemcell locally'
task :build_microbosh, [:infrastructure_name, :operating_system_name] do |_, args|
require 'bosh/dev/build'
require 'bosh/dev/micro_bosh_release'
require 'bosh/dev/stemcell_builder'
build = Bosh::Dev::Build.candidate
release_tarball_path = Bosh::Dev::MicroBoshRelease.new.tarball
ァィゥェォ
ヵ‡੭ヶ⊐
⧺ㇱㇲըそ
た∓⺍⫧ㇳ
ᚋ⚌ㇴね৴
ㇵㇶㇷㇸㇹ
੨𝞝ㇺ𝘹も
ャュョ
ㇻㇼㇽㇾㇿ
ヮ╕ん
@yudai
yudai / gist:7539098
Created November 19, 2013 02:12
Fog request logging
module Fog
module Core
class Connection
def request(params, &block)
reset unless @persistent
p params
@excon.request(params, &block)
end
end
end
@yudai
yudai / gist:7540823
Last active December 28, 2015 18:09
Log Instrumentor for OpenStack CPI
module Bosh::OpenStackCloud
class ExconLoggingInstrumentor
def self.instrument(name, params = {}, &block)
params = params.dup
if params.has_key?(:headers) && params[:headers].has_key?('Authorization')
params[:headers] = params[:headers].dup
params[:headers]['Authorization'] = REDACTED
end
if params.has_key?(:password)
params[:password] = REDACTED
Error 450001: Compile Package Failure (exit code: 2)
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/message/compile_package.rb:206:in `block in compile'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/message/compile_package.rb:190:in `chdir'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/message/compile_package.rb:190:in `compile'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/message/compile_package.rb:64:in `start'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/message/compile_package.rb:31:in `process'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/handler.rb:265:in `process'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/handler.rb:250:in `process_long_running'
/var/vcap/bosh/lib/ruby/gems/1.9.1/gems/bosh_agent-1.5.0.pre.1644/lib/bosh_agent/handler.rb:177:in `block in pro
@yudai
yudai / gist:8857785
Created February 7, 2014 05:32
which do you like?
#1
obj.method0(
arg1,
arg2)
.method1
.method2
#2
obj.method0(
arg1,
---
name: firstbosh
logging:
level: DEBUG
network:
type: dynamic
vip: <FLOATING_IP> # CHANGE
cloud_properties:
network_name: <SUBNETWORK_NAME> # CHANGE
@yudai
yudai / gist:c613913b1123647655b1
Last active August 29, 2015 14:16
Find .gvm_local
function activate_gvm_pkgset() {
if [ -n "$__in_active_gvm_pkgset" ]; then
return
fi
__in_active_gvm_pkgset=true
nearest_local=((../)#.gvm_local/..(#qN)(:a))
if [ -d "$nearest_local" ] && \
[ "$nearest_local" != "$__gvm_local_path" ]; then
current=$(pwd)
cd $nearest_local