Skip to content

Instantly share code, notes, and snippets.

View sumitramteke's full-sized avatar

Sumit Ramteke sumitramteke

View GitHub Profile
@sumitramteke
sumitramteke / vagrant-aws
Last active August 18, 2016 15:26 — forked from arbabnazar/vagrant-aws
vagrant file for creating an ec2 instance on aws
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "aws"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider :aws do |aws, override|
aws.access_key_id = ENV['AWS_ACCESS_KEY']
aws.secret_access_key = ENV['AWS_SECRET_KEY']
@sumitramteke
sumitramteke / Person.java
Last active July 6, 2017 16:18
This will remove Objects from Collection using List of single Attribute (here `String`) by overriding `remove` method
package snippets.model;
public class Person {
private String id;
private String name;
private int age;
public Person(String id, String name, int age) {
this.id = id;