Skip to content

Instantly share code, notes, and snippets.

View andreaturli's full-sized avatar
🏠
Working from home

Andrea Turli andreaturli

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am andreaturli on github.
  • I am andreaturli (https://keybase.io/andreaturli) on keybase.
  • I have a public key whose fingerprint is E4DD 813F 457E 4FB4 5096 7DAC 2A19 313B D32D 5F79

To claim this, I am signing this object:

@andreaturli
andreaturli / python-web-server.yaml
Last active August 18, 2017 10:24
Python Web Server
name: Python Web Server
# this example deploys a very simple python web server
services:
- type: vanilla-bash-server
name: My Bash Web Server VM
brooklyn.config:
install.command: |
# install python if not present
[#ftl]
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# Copyright 2014-2016 by Cloudsoft Corporation Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
```yaml
location: localhost
services:
-
type: org.apache.brooklyn.entity.java.VanillaJavaApp
id: microservice
brooklyn.config:
main: org.springframework.boot.loader.JarLauncher
name: VM
services:
- type: brooklyn.entity.basic.EmptySoftwareProcess
location:
jclouds:openstack-devtest-compute:
endpoint: http://x.x.x.x:5000/v2.0/
identity: "my-tenant:my-username"
credential: my-password
@andreaturli
andreaturli / jmeter-test.jmx
Last active April 27, 2016 08:18
jmeter configuration
<jmeterTestPlan version="1.2" properties="2.1">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Brooklyn local webapp test - load for localhost:8000" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
<stringProp name="TestPlan.user_define_classpath"></stringProp>
### Keybase proof
I hereby claim:
* I am andreaturli on github.
* I am andreaturli (https://keybase.io/andreaturli) on keybase.
* I have a public key whose fingerprint is 98D2 2844 C941 21B7 11F7 E27F 0B4C ECE0 9FA6 483D
To claim this, I am signing this object: