Skip to content

Instantly share code, notes, and snippets.

View sevetseh28's full-sized avatar
🧉
drinking Mate

Hernan sevetseh28

🧉
drinking Mate
View GitHub Profile
@ajazfarhad
ajazfarhad / docker-compose.yml
Created May 12, 2020 13:00
docker-compose file for Rails API and Datadog Agent
version: "3.7"
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: password
volumes:
- ./tmp/db:/var/lib/postgresql/data
#!/bin/sh
#
# Script for unique running an aws_ecs_task and wait until it is finished.
#
# ONLY TESTED FOR FARGATE_CLUSTERS
#
# REQUIREMENTS
# * aws cli
# * AWS-credential ENV's
#
@EyMaddis
EyMaddis / whatsapp-send-in-current-chat.js
Created November 4, 2016 12:50
Sending messages programmatically on web.whatsapp.com
// this allows to send arbitrary messages. The chat conversation you want to send messages to has to be open.
// just run this in the JS console
// http://stackoverflow.com/a/39165137/1249001
function findReactComponent(dom) {
for (var key in dom)
if (key.startsWith("__reactInternalInstance$")) {
var compInternals = dom[key]._currentElement;
var compWrapper = compInternals._owner;
var comp = compWrapper._instance;
@vasanthk
vasanthk / System Design.md
Last active July 23, 2024 11:24
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?