Skip to content

Instantly share code, notes, and snippets.

View abhiesa's full-sized avatar

Abhishek Prashant Pandey abhiesa

View GitHub Profile
@abhiesa
abhiesa / server.compiler
Created May 15, 2012 18:18
server compiler
The -server compiler
The -XX:+UseParallelGC parallel (throughput) garbage collector
The -Xms initial heap size is 1/64th of the machine's physical memory
The -Xmx maximum heap size is 1/4th of the machine's physical memory (up to 1 GB max).
The -XX:+UseParallelGC parallel (throughput) garbage collector, or
The -XX:+UseConcMarkSweepGC concurrent (low pause time) garbage collector (also known as CMS)
The -XX:+UseSerialGC serial garbage collector (for smaller applications and systems)
4.2.1 Tuning Example 1: Tuning for Throughput
@abhiesa
abhiesa / JaroWrinker.java
Last active March 18, 2021 10:52
Find the Jaro Winkler Distance which indicates the similarity score between two Strings.
/**
* <p>Find the Jaro Winkler Distance which indicates the similarity score between two Strings.</p>
*
* <p>The Jaro measure is the weighted sum of percentage of matched characters from each file and transposed characters.
* Winkler increased this measure for matching initial characters.</p>
*
* <p>This implementation is based on the Jaro Winkler similarity algorithm
* from <a href="http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance">http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance</a>.</p>
*/
public class JaroWrinker {

Hard Skills

  • Starting Business with Agriculture (Marketing, Sales and Regulatory Complaince)
    • Help Businness understand how to enter in Agricltue market, demand to supply chain
    • Things tto remember, with regulatory complaince
    • How loans and subsidies work
  • Digitization and Publishing Treditional Art
    • Helps to understand digitization need and process
    • Helps to create digiization of Landscapes, Historical monumnet, paintings, scultures
  • helps to achival of ancient text, designs in cloths, tools and buildings

adoption implemention redundant highly available language-agnostic application programming interface (API) track services consuming healthy analytics

kubectl expose deployment test --port=80
113 kubectl get service
114 kubectl describe service test
115 kubectl get pods -o wide
116 kubectl edit deployments
117 kubectl get pods -o wide
118 kubectl describe service test
119 kubectl get pods -o wide
120 kubectl describe service test
121 kubectl get pods -o wide
@abhiesa
abhiesa / gist:63b3dd8b9aed5f54914d
Last active April 10, 2018 18:05
Setup an Existing Octopress Repository After Git Clone
Basically, you need to create and link the deploy directory to master branch.
First, we clone the repo and switch to the correct branch:
1) git clone https://github.com/username/username.github.io.git
2) git checkout source
Then we need to setup the deploy directory.
1) mkdir _deploy
2) cd _deploy
3) git init
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod
sudo systemctl status mongodb
sudo systemctl enable mongodb

kickstart docker

katacode

deploying-first-container

Search registry from images

  • docker search
  • docker search redis

Run Container from images

  • docker run
  • docker run -d redis

Inspect container