Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rushal Verma rusrushal13

🏠
Working from home
View GitHub Profile
View SRE-Devops Challenge
SRE/DevOps Challenge
Overview
This challenge will test the following skills:
Kubernetes orchestration
CI systems
REST APIs
Scripting
Monitoring
Allow at least 3 hours to complete each part.
View TIL.md
  1. 20 June 2020 James mickens Keynote - What is our responsibility towards Society
    • Be skeptic
    • think before deploying
  2. 21 June 2020 Idea Generation Sam Altman
    • Environment makes a difference
    • Stay away from people who are world-weary and belittle your ambitions
    • A good question to ask yourself early in the process of thinking about an idea is “could this be huge if it worked?”
    • It’s also important to think about what you’re well-suited for
  3. 21 June 2020 The new economics of chess
    • How magnus carlsen bringing economics into chess, by being a shareholder in the chess.com as well as playing top rated tournaments
@rusrushal13
rusrushal13 / Questions.md
Last active Jun 20, 2020
questions to ask for in the interviews
View Questions.md
View EncryptionVSHashing.md

Hash: A message digest which is generated from a text and can't reproduce from a different text

Hashing: Producing message digest when given a text

  • one input - one output
  • can't reproduce input from output
  • modidfing input means change in hash

Hashing funtion(Hash Algorithm): A function that can be used to map out data of random size to data of fixed size. Some hashing algorithms are MD4, SHA(Secure Hash Algorithm, SHA-1(160 Bits), SHA-2(256 Bits))

View fetchData.js
export const checkStatus = response => {
if (
response.status >= 200 &&
response.status < 300
) {
return response;
}
return response.json().then(json => {
return Promise.reject({
status: response.status,
@rusrushal13
rusrushal13 / app.js
Created Oct 23, 2019
react google analytics
View app.js
#hook for initializing react google analytics
useEffect(() => {
initGA(Config.googleTrackingGAID);
if (
window.performance &&
performance.navigation.type === performance.navigation.TYPE_NAVIGATE
) {
PageView();
}
history.listen(location => {
View CurlExercisesSolutions.md

Solution to Curl Excersises

  • Request https://httpbin.org

curl https://httpbin.org

<!DOCTYPE html>
<html lang="en">
@rusrushal13
rusrushal13 / DISTRIBUTEDC.md
Created Jun 29, 2018 — forked from yclim95/DISTRIBUTEDC.md
DistributedComputing
View DISTRIBUTEDC.md

##Map Reduce

  1. Map/Reduce Library partitions the input data into M pieces of typically 16-64 MB.

    True.

  2. If there are M partitions of the input, there are M map workers running simultaneously.

    False. There are generally less worker nodes than partitions.

View "Learning never exhausts the mind." - Leonardo da Vinci.py
import requests
req = requests.json("http://api.open-notify.org/iss-now.json")
print(req.json()['iss_position'])