Skip to content

Instantly share code, notes, and snippets.

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
class XMLMarker {
String startTag;

Understanding MAVEN - The core

Purpose of the article:

The article is about introducing maven, so that people joining projects which involve maven can start to understand the pom.xml and maven concepts.

This article describes

  • What was the problem in the java world which led to the birth of maven
  • How maven try to solve it.
  • Project coordinates
If you find a label in codeground that can be better communicated using some othere label please suggest them here:
For eg: Test Template -> Test Drafts
@bhuvangu
bhuvangu / gist:3add4067f4269ff4c134
Created July 1, 2014 17:02
jconsole report params
"-Dcom.sun.management.jmxremote.port=8987",
"-Dcom.sun.management.jmxremote.authenticate=false",
"-Dcom.sun.management.jmxremote",
"-Dcom.sun.management.jmxremote.ssl=false",
"-Djava.rmi.server.hostname=x.x.x.x"
@bhuvangu
bhuvangu / redirect.sh
Created December 12, 2013 08:01
Redirect call to some other host to localhost
iptables -t nat -A OUTPUT -p tcp -d 10.231.27.72 --dport 80 -j DNAT --to-destination 127.0.0.1:9192
@bhuvangu
bhuvangu / gist:7923998
Created December 12, 2013 06:31
few(4786) google live ip on 12-12-2013
#extracted between 74.125.0.0 - 74.125.255.255
#serve google page
74.125.229.238
74.125.229.214
74.125.229.211
74.125.229.234
74.125.229.240
74.125.229.224
74.125.229.244
74.125.229.237
@bhuvangu
bhuvangu / live_ip.rb
Created December 12, 2013 04:25
Gist to check ip responding with code 200
ips =["74.125.34.181",
"74.125.34.126",
"74.125.34.252",
"74.125.34.247",
"74.125.34.254"];
def get_page(ip)
uri = URI("http://#{ip}")
begin
http = Net::HTTP.new(uri.host, uri.port)