Skip to content

Instantly share code, notes, and snippets.

View bilal's full-sized avatar

Bilal Sheikh bilal

View GitHub Profile
@bilal
bilal / seyren-setup.sh
Last active December 19, 2015 07:29
Setting up and installing seyren on ec2
#!/bin/bash -ex
yum install java-1.7.0-openjdk-devel.x86_64 -y
#### Install MongoDB ####
cd /opt
curl http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.2.0.tgz > mongo.tgz
tar -zxvf mongo.tgz
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template creates a seyren application. The template uses the WaitCondition resource to synchronize creation of the stack with the application becoming healthy. **WARNING** This template creates an Amazon EC2 instance and an Elastic IP Address. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
@bilal
bilal / seyren_restart.sh
Last active December 18, 2015 18:29
A script to restart Seyren
#!/bin/bash
CURRENT_USER=`id -u -n`
echo $CURRENT_USER
# kill the jetty/java process
su ec2-user -c 'kill -9 `pidof java`; JAVAPID=`pidof java | wc -l`; while [ $JAVAPID -ne 0 ]; do sleep 1; kill -9 `pidof java`; JAVAPID=`pidof java | wc -l`; done'
@bilal
bilal / seyren_cloudfront.json
Last active October 11, 2015 22:58 — forked from usmanismail/seyren_cloudfront.json
A cloud front template to bring up a seyren node
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template creates a seyren application. The template uses the WaitCondition resource to synchronize creation of the stack with the application becoming healthy. **WARNING** This template creates an Amazon EC2 instance and an Elastic IP Address. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
==> piqi_src (compile)
src/piqi_src.erl:none: error in parse transform 'lager_transform': {undef,
[{lager_transform,
parse_transform,
[[{attribute,1,file,
{"src/piqi_src.erl",1}},
{attribute,1,module,piqi_src},
{eof,2}],
[{outdir,"ebin"},
debug_info,fail_on_warning,
==> piqi_src (compile)
src/piqi_src.erl:none: error in parse transform 'lager_transform': {undef,
[{lager_transform,
parse_transform,
[[{attribute,1,file,
{"src/piqi_src.erl",1}},
{attribute,1,module,piqi_src},
{eof,2}],
[{outdir,"ebin"},
debug_info,fail_on_warning,