Skip to content

Instantly share code, notes, and snippets.

View vissapra's full-sized avatar

vissapra

  • Philadelphia, PA
View GitHub Profile
@vissapra
vissapra / grokking_to_leetcode.md
Created November 9, 2023 15:09 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

import java.util.HashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public class ConcurrentMap<K,V> extends HashMap<K,V> {
private final Lock readLock;
private final Lock writeLock;
@vissapra
vissapra / README.md
Created March 23, 2019 15:58 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@vissapra
vissapra / open_ssl.txt
Created March 18, 2019 19:00
Install SSL certificate to cacerts from remote server
openssl s_client -showcerts -connect {HOST:PORT} </dev/null 2>/dev/null|openssl x509 -outform PEM >server.pem
openssl x509 -outform der -in server.pem -out server.der
sudo keytool -import -alias your-alias -keystore jre/lib/security/cacerts -file server.der
@vissapra
vissapra / golang_resouce
Created January 19, 2018 01:18 — forked from sapamja/golang_resouce
GoLang Resouces
Facebook:
https://www.facebook.com/notes/learn-golang/free-go-resources-available-in-internet/781530568600486
Go learning resources available in Internet.
Official GoLang Sites:
Golang: http://golang.org
Golang Blog: https://blog.golang.org/
Remove all containers of a image
docker ps -a | awk '{ print $1,$2 }' | grep <image> | awk '{print $1 }' | xargs -I {} docker rm {}
docker ps -a | awk '$2~/<image>/ {print $1}' | xargs -r docker rm
Docker run
docker run -ti -p 9098:9098 --env-file=env-file <image> /bin/sh
You can run the following command to get the logs for a task, running or not.
docker logs $(docker inspect --format "{{.Status.ContainerStatus.ContainerID}}" <task_id>)
@vissapra
vissapra / service-checklist.md
Created November 23, 2016 03:28 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?