Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
enable_bracketed_mode() {
printf "\e[?2004h"
}
disable_bracketed_mode() {
printf "\e[?2004l"
}
@trivelt
trivelt / about.md
Last active July 26, 2019 20:09 — forked from blaix/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in.
  4. Return to Step 1, this time selecting a new experience.

This gist if forked from blaix. The original is from a blog post by Jason Rudolph.

@trivelt
trivelt / generate_mock_account_data.py
Created July 20, 2020 15:57
Generator of the example JSON file to illustrate article about ijson module on https://polydev.pl
import json
import random
from uuid import uuid4
AVAILABLE_SERVICES = ["FooService", "BarService", "FooBarService", "Unknown", "Secret"]
data = {"data": []}
NUMBER_OF_ACCOUNTS = 100000
for i in range(NUMBER_OF_ACCOUNTS):