Skip to content

Instantly share code, notes, and snippets.

@imesh
imesh / build-haproxy-on-osx.sh
Last active August 22, 2016 13:57
Build HAProxy on OSX
# Install Xcode/Preferences/Downloads/Command Line Tools, this will install make for OSX
# Download HAProxy source (tar.gz) bundle.
make ARCH=x86_64 and TARGET=darwin
make install
# Once the installation is complete haproxy executable could be found at: /usr/local/sbin/haproxy
@imesh
imesh / cp-packages-to-local-dist.sh
Last active December 27, 2015 23:59
Copy Apache Stratos (incubating) binary packages to a local dist
#!/bin/bash
# -----------------------------------------------------------------
# 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
#
@imesh
imesh / build-stratos-load-balancer.sh
Last active December 28, 2015 12:09
Build Apache Stratos (incubating) 4.0.0 Load Balancer
#!/bin/bash
# ----------------------------------------------------------------------------
#
# 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
@imesh
imesh / upload-packs-to-apache-dist.sh
Last active January 1, 2016 10:49
Upload Apache Stratos (incubating) binary packages to Apache Dist
#!/bin/bash
# ------------------------------------------------------------------
# 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
#
@imesh
imesh / cp-cep-artifacts.sh
Created December 26, 2013 14:31
Copy CEP artifacts from source to server deployment folders
#!/bin/bash
# -----------------------------------------------------------------
# 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
#
# Souce: http://oliverdavies.co.uk/blog/2011/10/install-and-configure-subversion-svn-server-ubuntu
set -e
echo "Updating packages..."
sudo apt-get update
echo "Installing subversion..."
sudo apt-get install subversion subversion-tools libapache2-svn
@imesh
imesh / copy_activemq_libs.sh
Last active August 29, 2015 13:59
Copy ActiveMQ libraries required for Stratos 4.0.0 to a target path
activemq_version=5.8.0
activemq_home=/home/ubuntu/packages/apache-activemq-5.8.0
copy_libs() {
target_lib_path=$1
cp ${activemq_home}/lib/activemq-broker-${activemq_version}.jar ${target_lib_path}
cp ${activemq_home}/lib/activemq-client-${activemq_version}.jar ${target_lib_path}
cp ${activemq_home}/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar ${target_lib_path}
cp ${activemq_home}/lib/geronimo-jms_1.1_spec-1.1.1.jar ${target_lib_path}
cp ${activemq_home}/lib/hawtbuf-1.9.jar ${target_lib_path}
#!/bin/bash
# -----------------------------------------------------------------
# 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
#
@imesh
imesh / scp_stratos_packs.sh
Last active August 29, 2015 14:00
SCP Stratos Packs to a server
# NOT COMPLETED
stratos_version=4.0.0-incubating
cep_extension_name=apache-stratos-cep-extension-${stratos_version}
cep_extension_path=/tmp/${cep_extension_name}
echo "Creating CEP extension pack..."
if [[ ! -d ${cep_extension_path} ]]; then
mkdir ${cep_extension_path}
fi
@imesh
imesh / sign-stratos-packs.sh
Last active August 29, 2015 14:00
Sign stratos packages
#!/bin/bash
# -----------------------------------------------------------------
# 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
#