Skip to content

Instantly share code, notes, and snippets.

@namratachaudhary
namratachaudhary / FB-PE-InterviewTips.md
Created September 8, 2025 10:45 — forked from ameenkhan07/FB-PE-InterviewTips.md
Facebook Production Engineering Interview

What to Expect and Tips

• 45-minute systems interview, focus on responding to real world problems with an unhealthy service, such as a web server or database. The interview will start off at a high level troubleshooting a likely scenario, dig deeper to find the cause and some possible solutions for it. The goal is to probe your knowledge of systems at scale and under load, so keep in mind the challenges of the Facebook environment.
• Focus on things such as tooling, memory management and unix process lifecycle.

Systems

More specifically, linux troubleshooting and debugging. Understanding things like memory, io, cpu, shell, memory etc. would be pretty helpful. Knowing how to actually write a unix shell would also be a good idea. What tools might you use to debug something? On another note, this interview will likely push your boundaries of what you know (and how to implement it).

Design/Architecture 

Interview is all about taking an ambiguous question of how you might build a system and letting

@namratachaudhary
namratachaudhary / daal-mash.md
Created November 6, 2020 19:02
Not-so-boring daal

DO NOT ADD OIL, BUTTER, GHEE OR ANY SPICES TILL THIS STEP OR YOU WILL NOT BE ABLE TO PRESERVE THIS IN THE FRIDGE

This is the mash we prepare with blend of lentils and peas, and this can be preserved in the fridge for upto 2 weeks. The quantity below makes enough 4/5 medium portion sizes (depending upon what your definition is, but for one 1 portion of daal is enough for 100gm of rice)

Ingredients -

  • 50 gm masoor daal (pink one)
  • 100 gm moong daal (yellow lentils)
  • 150 gm toor daal (yellow split pigeon peas - not oily ones)
  • 1/2 tsp tumeric
  • 2 chopped chillies (optional, but do not add more)

Commands

Get kubectl version

kubectl version

Get cluster info:

kubectl cluster-info
@namratachaudhary
namratachaudhary / fsycn.go
Last active September 6, 2018 04:04
Fsync Benchmarking for Go
package main
import (
"flag"
"io/ioutil"
"log"
"os"
"time"
)
data List a = Nothing | Cons a (List a)
mylist = (Cons 1 (Cons 2 (Cons 3 Nothing)))
print mylist
-- This will show errors
-- You cannot run a `show` on your mylist
-- because you are not deriving them while defining your list in line 1
-- So your new definition becomes
data List a = Nothing | Cons a (List a) deriving (Show)
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*