Skip to content

Instantly share code, notes, and snippets.

View sunilsoni's full-sized avatar
💭
I may be slow to respond.

Sunil Soni sunilsoni

💭
I may be slow to respond.
View GitHub Profile
mvn install -DskipTests
Install Local Jar:
mvn install:install-file \
-Dfile="/Users/sunilsoni/Google Drive/Workspace/Jars/jrecord-base-0.90.2.jar" \
-DgroupId=net.sf \
-DartifactId=jrecord-base \
-Dversion=0.90.2 \
# this will install java 1.8, zookeeper, and kafka
brew install kafka
# this will run ZK and kafka as services
brew services start zookeeper
brew services start kafka
That's it. If you want to stop Kafka, just run the brew services commands in reverse:
brew services stop kafka
cd ~/aerospike-vm
vagrant up
Verify Aerospike and AMC are Running:
sunilsoni@Sunils-MacBook-Pro aerospike-vm % vagrant ssh -c "sudo service aerospike status"
asd (pid 3058) is running...
Connection to 127.0.0.1 closed.
sunilsoni@Sunils-MacBook-Pro aerospike-vm % vagrant ssh -c "sudo service amc status"
amc (pid 1419) is running...
Connection to 127.0.0.1 closed.
@sunilsoni
sunilsoni / docker-ce-ubuntu-17.10.md
Last active October 1, 2018 14:14 — forked from levsthings/docker-ce-ubuntu-17.10.md
Install Docker CE on Ubuntu 17.10

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

If you are used to installing Docker to your development machine with get-docker script, that won't work either. So the solution is to install Docker CE from the zesty package.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@sunilsoni
sunilsoni / The Technical Interview Cheat Sheet.md
Created November 11, 2016 16:06 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@sunilsoni
sunilsoni / Useful Codes
Last active December 18, 2015 13:08
Useful Codes
JQuery No conflict
jQuery.noConflict();
var $j = jQuery.noConflict();
$j(document).ready(function(){
$j("div").hide();
});
Decimal Points round off