Skip to content

Instantly share code, notes, and snippets.

View snehaso's full-sized avatar

Sneha Somwanshi snehaso

  • Thoughtworks
  • London, UK
View GitHub Profile
@snehaso
snehaso / node.json
Created November 7, 2012 09:41
common node atttributes for bird vision nodes
{
"java":{
"install_flavor":"oracle",
"oracle":{
"accept_oracle_download_terms":true
}
},
"languages":{
"ruby":{
"default_version":"1.9.1"
@snehaso
snehaso / node.json
Created November 7, 2012 09:42
node attributes
{
"java":{
"install_flavor":"oracle",
"oracle":{
"accept_oracle_download_terms":true
}
}, "languages":{
"ruby":{
"default_version":"1.9.1"
}
@snehaso
snehaso / describe_vcloud.rb
Created September 11, 2013 10:57
This ruby script tries to describe the all organisations within the current session
#! /usr/bin/ruby
require 'rubygems'
require 'vcloud'
def print_networks vdc
vdc.get_network_references_by_name
end
# create session and authenticate
@session = VCloud::Client.new( 'https://api.vcd.portal.skyscapecloud.com/api/', '1.5', :verify_ssl => false)
@snehaso
snehaso / launcher_config.yaml
Created December 10, 2013 12:48
launcher_config.yaml
---
vapps:
- name: vapp-vcloud-tools-tests-1386679438
vdc_name: vCloud CI (IL2-DEVTEST-BASIC)
catalog: walker-ci
catalog_item: nick-method-precise64
vm:
hardware_config:
memory: 4096
cpu: 2
require 'spec_helper'
module Vcloud
module EdgeGateway
module ConfigurationGenerator
describe LoadBalancerService do
test_cases = [
{
title: '',
require 'vcloud'
module Vcloud
module EdgeGateway
module ConfigurationGenerator
class LoadBalancerService
def generate_config(input_config)
output_config = {}
resource "aws_instance" "nat" {
ami = "${var.aws_nat_ami}"
availability_zone = "us-east-1b"
instance_type = "m1.small"
key_name = "${var.aws_key_name}"
security_groups = ["${aws_security_group.nat.id}"]
subnet_id = "${aws_subnet.us-east-1b-public.id}"
associate_public_ip_address = true
source_dest_check = false
}
@snehaso
snehaso / gist:f0ee891826241f31194f
Created January 19, 2015 16:46
cloudformation.json
"usEast1bPublic": {
"Type": "AWS::EC2::Subnet",
"Properties": {
"VpcId": {
"Ref": "VPC"
},
"CidrBlock": "10.0.0.0/24",
"AvailabilityZone": "us-east-1b"
}
},
^C~/dev/freeagent (aws/chrome *) $ ./node_modules/karma/bin/karma start config/karma.conf.js --browsers=Chrome --single-run=false
23 07 2019 10:27:20.582:DEBUG [config]: Loading config /Users/snehasomwanshi/dev/freeagent/config/karma.conf.js
23 07 2019 10:27:20.587:DEBUG [karma-server]: Final config Config {
LOG_DISABLE: 'OFF',
LOG_ERROR: 'ERROR',
LOG_WARN: 'WARN',
LOG_INFO: 'INFO',
LOG_DEBUG: 'DEBUG',
frameworks: [ 'jasmine', 'fixture' ],
protocol: 'http:',
2019-07-24T10:51:48.596Z] Alert rules: ...F HTML screenshot: /mnt/ramdisk/workspace/fac/freeagent/log/capybara/screenshot_Inline_Banking_-_Credit_Note_Refunds_explaining_a_transaction_as_a_credit_note_refund_2019-07-24-10-50-28.212.html
[2019-07-24T10:51:48.596Z] Image screenshot: /mnt/ramdisk/workspace/fac/freeagent/log/capybara/screenshot_Inline_Banking_-_Credit_Note_Refunds_explaining_a_transaction_as_a_credit_note_refund_2019-07-24-10-50-28.212.png
[2019-07-24T10:51:48.596Z] F HTML screenshot: /mnt/ramdisk/workspace/fac/freeagent/log/capybara/screenshot_Inline_Banking_-_Credit_Note_Refunds_displaying_a_message_when_no_matching_credit_note_could_be_found_2019-07-24-10-50-52.779.html
[2019-07-24T10:51:48.596Z] Image screenshot: /mnt/ramdisk/workspace/fac/freeagent/log/capybara/screenshot_Inline_Banking_-_Credit_Note_Refunds_displaying_a_message_when_no_matching_credit_note_could_be_found_2019-07-24-10-50-52.779.png
[2019-07-24T10:51:48.596Z] F HTML screenshot: /mnt/ramdisk/workspace/fac/freea