Skip to content

Instantly share code, notes, and snippets.

View Flogex's full-sized avatar

Florian Gerlinghoff Flogex

  • Amsterdam, The Netherlands
View GitHub Profile
@Flogex
Flogex / gist:188fd384137efbc32815632fe1a7ae25
Created April 9, 2024 15:26
Generate JSON file with unique object keys
import random, string, math
MAX_LEVEL = 6
def randomword():
letters = string.ascii_lowercase
return ''.join(random.choice(letters) for i in range(5))
chars = ["A", "B", "C", "D"]
@Flogex
Flogex / postman-diff.md
Last active April 8, 2023 19:11
git diff for Postman Collections

git diff for Postman Collections

The Problem

When exporting a Postman Collection, the body of a request is stored in the "raw" property as a single string. When using git diff, it is hard to compare the changes because the whole line has changed.

Using jq as textconv

It is possible to define in a .gitattributes file what diff driver to use.