Skip to content

Instantly share code, notes, and snippets.

View nemani's full-sized avatar
🤷‍♂️
Vibin'

Arjun Nemani nemani

🤷‍♂️
Vibin'
View GitHub Profile
# This template is a Cloud Formation template, that has AWS Sam seamlessly mixed in
# It is extremely powerful as you will see!
# This is a template of Lambda & RDS, publically available (so no private VPC)
AWSTemplateFormatVersion: 2010-09-09
Transform: AWS::Serverless-2016-10-31 # This is to tell cloudformation we need to transform this template, as it has SAM!
Description: Severless set up with an RDS
######## ### ######## ### ## ##
## ## ## ## ## ## ## ## ### ###
@janek26
janek26 / crypto.js
Last active February 24, 2022 18:26
Simple aes and sha256 for browsers using window.crypto
// exports:
// - supportsCrypto() : bool
// - randomString(length : int) : string
// - aesEncrypt(value : string, password : string) : string
// - aesDecrypt(encryptedMsg : string, password : string) : string
// - sha256(value : string) : string
// if you use this code in Node import crypto and TextEncoder
import WebCrypto from 'node-webcrypto-ossl'
import { TextEncoder, TextDecoder } from 'util'
@ameenkhan07
ameenkhan07 / FB-PE-InterviewTips.md
Last active November 15, 2024 04:04
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

@weblogix
weblogix / drevo-caliber.json
Last active May 2, 2021 14:46
[Karabiner-Elements] for DREVO Calibur 71-key Keyboard #mac #keyboard #karabiner
{
"title": "DREVO Calibur 71-key Keyboard",
"rules": [
{
"description": "Set ESC to grave_accent_and_tilde",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "escape",
@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'