Skip to content

Instantly share code, notes, and snippets.

View abhiesa's full-sized avatar

Abhishek Prashant Pandey abhiesa

View GitHub Profile
@abhiesa
abhiesa / pom.xml
Last active August 29, 2015 14:16 — forked from gordonad/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.gordondickens.sample</groupId>
<artifactId>sample-parent</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
@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 {
@abhiesa
abhiesa / gist:7afff4551ba881655e83
Last active August 29, 2015 14:26 — forked from radiosilence/gist:4040553
RequireJS with Zurb Foundation
requirejs.config({
shim: {
'foundation/jquery.foundation.topbar': {
deps: ['jquery'],
},
'foundation/jquery.cookie': {
deps: ['jquery']
},
'foundation/jquery.event.move': {
deps: ['jquery']
@abhiesa
abhiesa / app.js
Last active August 29, 2015 14:26 — forked from mscharley/app.js
RequireJS with Zurb Foundation 5
/*
This assumes that your bower_components folder is /assets. I renamed it in .bower.json for sanities sake.
I use baseUrl = '/js' as this is where all my custom javascript is and requirejs can't navigate
bower's folder structure anyway.
*/
requirejs.config({
paths: {
@abhiesa
abhiesa / workspace.log
Created February 16, 2016 17:52
Eclipse: Bug 479245; reporting
!SESSION 2016-02-16 23:09:15.717 -----------------------------------------------
eclipse.buildId=3.7.2.201511261048-RELEASE-e45
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.springsource.sts.ide -keyring /Users/abhishek/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.springsource.sts.ide -keyring /Users/abhishek/.eclipse_keyring -showlocation
This is a continuation of log file /Users/abhishek/work/java/sts-mars-workspace/.metadata/.bak_0.log
Created Time: 2016-02-16 23:12:35.018
To ensure system integrity, the software architect needs to be part of the project team. He must make sure that he enables the right people to collaborate on the system architecture. Being part of the team does not mean not taking responsibility. It is great to give ownership to members of the team, but in the end, the architect needs to stay accountable. When collaborating, an architect should not enforce all technical decisions. Part of working as a team, is accepting to be challenged and embracing this challenge. When team members have spirited discussions, it shows they are passionate enough about their craft to care. Disagreeing and discussing alternatives is a great way to come to a better solution and to learn from each other. Being part of the team, as an architect, will lead to a system with a consistent vision, where the implementation matches the architectural description. This also implies that an architect should be involved in the codebase of the system: writing code, performing code-reviews, do

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

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
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