Skip to content

Instantly share code, notes, and snippets.

View softmentor's full-sized avatar

Jiny Thattil softmentor

  • Bangalore, India
View GitHub Profile
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
sudo apt-get update
sudo apt-get upgrade
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
sudo apt-get update
sudo apt-get upgrade
@softmentor
softmentor / helloworld.raml
Last active December 27, 2015 02:18
Hello World RAML file
#%RAML 0.8
---
#===============================================================
# Example Hello World API - RAML example
# References:
# - RAML Specification - http://raml.org/spec.html
# - RAML Projects - http://raml.org/projects.html
# - RAML Tools - http://www.apihub.com/raml-tools
#===============================================================
title: Example Hello World API
@softmentor
softmentor / mvn create archetype
Last active December 27, 2015 20:39
mvn create archetype from existing project
# Reference: The maven documentation for archetype is not comprehensive and has issues. Please refer the below link for better reference.
# https://community.jboss.org/wiki/MavenArchetypeCreationGuidelines
cd <example mvn project which needs to be archetyped>
mvn clean archetype:create-from-project -Dinteractive=true
#This would create the archetype in target folder.
# To generate a sample project from the archetype created locally.
mvn archetype:generate -DarchetypeCatalog=local -DgroupId=com.softmentor.examples -DartifactId=example-thrift -DarchetypeArtifactId=maven-archetype-apache-thrift
# install chef-solo one line !
curl -L https://www.opscode.com/chef/install.sh | bash
# cookbooks have their rep: check the dir name == cookbook name
mkdir -p /opt/cookbooks
git clone https://github.com/hw-cookbooks/graphite
git clone https://github.com/opscode-cookbooks/apache2.git
git clone https://github.com/opscode-cookbooks/python.git
git clone https://github.com/opscode-cookbooks/runit.git
git clone https://github.com/opscode-cookbooks/memcached.git
@softmentor
softmentor / google-api-java-client-checkstyle.xml
Created May 8, 2014 07:02
Check Style rule example - google api java client
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!-- This is a checkstyle configuration file. For descriptions of
what the following rules do, please see the checkstyle configuration
page at http://checkstyle.sourceforge.net/config.html -->
<module name="Checker">
@softmentor
softmentor / netflix-hystrix-checkstyle.xml
Created May 8, 2014 07:04
Netflix Hystrix checkstyle rules
<?xml version="1.0"?>
2<!DOCTYPE module PUBLIC
3 "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4 "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
5
6<module name="Checker">
7
8 <!-- Checks that a package-info.java file exists for each package. -->
9 <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
10 <!--
@softmentor
softmentor / square-checkstyle.xml
Created May 8, 2014 07:06
Square picaso checkstyle rules
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<!--module name="NewlineAtEndOfFile"/-->
<module name="FileLength"/>
<module name="FileTabCharacter"/>
@softmentor
softmentor / mozilla-java-checkstyle.xml
Created May 8, 2014 07:07
Mozilla java checkstyle rules
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!--
This file contains a Checkstyle configuration that checks for compliance with
Mozilla's Java style conventions.
The file defines the modules and properties in alpabetical order. Each property