Skip to content

Instantly share code, notes, and snippets.

var express = require('express');
var app = module.exports = express.createServer();
app.configure(function(){
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(__dirname + '/public'));
});
@killfill
killfill / svn2git.txt
Created June 7, 2012 19:18
SVN -> GIT Migration
ORIG=http://repo
TRUNK=branches/my_trunk
1) In the svn project:
svn log -q | awk -F '|' '/^r/ {sub("^ ", "", $2); sub(" $", "", $2); print $2" = "$2" <"$2">"}' | sort -u > authors-transform.txt
2) Edit author names
3) git svn clone $ORIG -A ../authors-transform.txt --no-metadata --trunk $TRUNK
Note: git saves branched data in 'git for-each-ref' or 'git branch -r' ...
4) git svn show-ignore > .gitignore
6) Checkout from the created repo, to get a clean one
@killfill
killfill / _.md
Created August 2, 2013 03:02
Tributary inlet
@killfill
killfill / _.md
Created August 3, 2013 18:26
broked
#Parse sysinfo output
eval $(/usr/bin/sysinfo -f -p | sed -e "s/^/SYSINFO_/")
#Config hostname
hostname your_hostname
#Setup hostname
eval "ipaddr=\${SYSINFO_Network_Interface_${SYSINFO_NIC_admin}_IPv4_Address}"
# Example of a plain KVM VM vm.json:
{
"brand": "kvm",
"alias": "bosh",
"resolvers": ["10.0.0.1"],
"ram": 2048,
"vcpus": 2,
"nics": [
{
"nic_tag": "admin",
$ bosh micro deploy bosh-stemcell-2657-fifo-kvm-centos-go_agent.tgz
Deploying new micro BOSH instance `microbosh-fifo/micro_bosh.yml' to `https://1.2.3.4:25555' (type 'yes' to continue): yes
Verifying stemcell...
File exists and readable OK
Verifying tarball...
Read tarball OK
Manifest exists OK
Stemcell image file OK
compilation:
cloud_properties:
instance_type: 8ade6653-86ac-4777-82a3-728ac5751142
network: redis1
reuse_compilation_vms: true
workers: 6
director_uuid: 51c09760-514c-4353-8a8a-4e8c3b4019fb
jobs:
- instances: 1
name: redis_leader_z1
compilation:
cloud_properties:
instance_type: 716a4b06-7031-4066-aab0-31758baf2808
network: cf1
reuse_compilation_vms: true
workers: 6
director_uuid: d1581edd-b03b-4486-b417-0d24a7e4cd25
jobs:
- instances: 1
name: nats_z1
diff --git a/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb b/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb
index dcc578a..0b07db1 100644
--- a/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb
+++ b/bosh_cli_plugin_micro/lib/bosh/deployer/instance_manager.rb
@@ -133,9 +133,10 @@ module Bosh::Deployer
end
end
- step 'Updating persistent disk' do
- update_persistent_disk