Skip to content

Instantly share code, notes, and snippets.

View laxman954's full-sized avatar

L∈κshmαηα ρεγυmαl M laxman954

View GitHub Profile
@laxman954
laxman954 / ConvertDecimalToBase2TO9.java
Last active July 29, 2016 07:11
converts number to different base system (base2 - base9)
package com.lp.mysample;
import java.math.BigInteger;
/**
* @author lperumalm This class converts number to different base system (base2
* - base9)
* <h3>Sample Test Data for 16</h3>
* <ul>
* </li>
@laxman954
laxman954 / curl_request_post.md
Last active September 28, 2016 11:24
Make Post Curl Request with Request Body

####Sample Post Request with body

curl -k  -X POST 'https://example.com/path' -d @payload.json -H 'Content-Type:application/json' -H 'request-header'  -D -

  • @payload.json post data to make request
@laxman954
laxman954 / commands_useful.md
Created September 28, 2016 11:32
Useful unix commands

Useful Unix Commands

  • find . -type d | grep eclipse - folder or file name contains eclipse
  • sudo lsof -i :80 - search for running port
  • open $TMPDIR../C/ -open temp directory in mac
@laxman954
laxman954 / HTMLToSlackMarkUp.java
Created October 8, 2016 19:54
Convert Your HTML Markup to Slack Markup, if found more then add here. #slack #slackmarkup
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class HTMLToSlackMarkUp {
public static Map<String, String> slackMarkUpMap = new HashMap<String, String>() {
{
put("<strong>", "*");
put("</strong>", "*");
<html>
<head>
<script type="text/javascript" src="http://www.sirpigal.org/js/jquery.core.js"></script>
<script>
$(document).ready(function(){
$('#myform').submit(function() {
// console.log($('#result').text(JSON.stringify($('form').serializeObject())));
console.log(JSON.stringify($(this).serializeArray()));
return false;
});

Keybase proof

I hereby claim:

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<title>Sample Map</title>
<style>
#mapdiv {
margin: 0;
padding: 0;
width: 500px;
height: 500px;
@laxman954
laxman954 / http-status-codes.json
Created March 21, 2017 11:47
Contains HTTP Status Code, Description, Reference Url, Type Of Response (Ref:https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) (https://tools.ietf.org/html/rfc7231)
{
"http_codes":[
{
"code":100,
"status":"Continue",
"type":"Information responses",
"link":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100",
"description":"This interim response indicates that everything so far is OK and that the client should continue with the request or ignore it if it is already finished."
},
{
@laxman954
laxman954 / java9feature.md
Created April 10, 2017 13:03
Java 9 Features
@laxman954
laxman954 / jdk_download.sh
Created September 22, 2017 10:17 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.