Skip to content

Instantly share code, notes, and snippets.

@imesh
imesh / build-haproxy-on-osx.sh
Last active Aug 22, 2016
Build HAProxy on OSX
View build-haproxy-on-osx.sh
# 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 Dec 27, 2015
Copy Apache Stratos (incubating) binary packages to a local dist
View cp-packages-to-local-dist.sh
#!/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 Dec 28, 2015
Build Apache Stratos (incubating) 4.0.0 Load Balancer
View build-stratos-load-balancer.sh
#!/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 Jan 1, 2016
Upload Apache Stratos (incubating) binary packages to Apache Dist
View upload-packs-to-apache-dist.sh
#!/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 Dec 26, 2013
Copy CEP artifacts from source to server deployment folders
View cp-cep-artifacts.sh
#!/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
#
View install-svn-server.sh
# 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 Aug 29, 2015
Copy ActiveMQ libraries required for Stratos 4.0.0 to a target path
View copy_activemq_libs.sh
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}
View copy-stratos-packs.sh
#!/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 Aug 29, 2015
SCP Stratos Packs to a server
View scp_stratos_packs.sh
# 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 Aug 29, 2015
Sign stratos packages
View sign-stratos-packs.sh
#!/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
#