Skip to content

Instantly share code, notes, and snippets.

View daemonza's full-sized avatar

Werner Gillmer daemonza

View GitHub Profile
cd ~/.nvim/bundle/YouCompleteMe
./install.sh --clang-completer
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
""" Daemonza vim setup
" Defaults
set nowrap " dont wrap lines
set tabstop=4 " a tab is four spaces
set backspace=indent,eol,start
" allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
compilation:
cloud_properties:
availability_zone: us-east-1c
instance_type: c1.medium
network: cf1
reuse_compilation_vms: true
workers: 6
director_uuid: 93b4e1fa-3bcd-4b5d-93e9-6a5cfed0ac59
jobs:
- default_networks:
@daemonza
daemonza / gist:77309d40f3a78b06c4a9
Created July 25, 2014 14:52
Use of entity>error is deprecated in favor of entity>error_details
fgrep -R 9ad1f3f5-741e-405b-7c48-803d53934aa0::fbed6430-ccb8-4485-9a3c-d08c457d6797 ./*
./cloud_controller_ng/cloud_controller_ng.log:{"timestamp":1406299203.241722,"message":"(0.000826s) SELECT * FROM `users` WHERE (`guid` = '6515a6d1-225d-404e-8afd-8015769542ec') LIMIT 1","log_level":"debug2","source":"cc.db","data":{"request_guid":"9ad1f3f5-741e-405b-7c48-803d53934aa0::fbed6430-ccb8-4485-9a3c-d08c457d6797"},"thread_id":28225480,"fiber_id":28383300,"process_id":1366,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/logging.rb","lineno":70,"method":"block in log_each"}
./cloud_controller_ng/cloud_controller_ng.log:{"timestamp":1406299203.2425063,"message":"dispatch VCAP::CloudController::JobsController get /v2/jobs/:guid","log_level":"debug","source":"cc.api","data":{"request_guid":"9ad1f3f5-741e-405b-7c48-803d53934aa0::fbed6430-ccb8-4485-9a3c-d08c457d6797"},"thread_id":28225480,"fiber_id":28383300,"process_id":1366,"file":"/va
VERSION:
6.1.2-6a013ca
REQUEST: [2014-07-25T10:49:18+02:00]
POST /oauth/token HTTP/1.1
Host: login.cf.hip-od2.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
ubuntu@ip-10-140-195-69:~/cf-setup$ bundle exec bosh aws create
Executing migration CreateKeyPairs
allocating 1 KeyPair(s)
Executing migration CreateVpc
Waiting for vpc, continuing after AWS::EC2::Errors::InvalidVpcID::NotFound: The vpc ID 'vpc-f4c46091' does not exist
creating internet gateway
creating security groups: open, bosh, bat, cf, web
creating subnets: bosh1, bosh_rds1, cf_elb1, cf_rds1, services_rds1, cf1, services1, bosh_rds2, cf_elb2, cf_rds2, services_rds2
Making subnet bosh1 10.10.0.0/24:
Making subnet bosh_rds1 10.10.1.0/24:
#!/usr/bin/env bash
function one {
if [ $1 == "test" ]; then
return 0
else
return 1
fi
}
Vagrant::Config.run do |config|
## MySQL
config.vm.define :puppetdev do |puppetdev|
puppetdev.vm.box = "debian-wheezy"
puppetdev.vm.box_url = "https://www.dropbox.com/s/23gupgb0xompvkm/Wheezy64.box?dl=1"
puppetdev.vm.host_name = "puppetdev.lan"
puppetdev.vm.network :hostonly, "192.168.1.10"
@daemonza
daemonza / Vagrantfile
Created February 12, 2014 15:56
Serf vagrant play area
# Basic Debian box with serf installed in $PATH
# Werner Gillmer <w.gillmer@onehippo.com>
Vagrant::Config.run do |config|
puts "------------------------------------------------"
puts "Serf playground machine "
puts "http://www.serfdom.io/ "
puts "Look at : http://www.serfdom.io/intro/index.html"
puts "------------------------------------------------"