Skip to content

Instantly share code, notes, and snippets.

View tschaume's full-sized avatar
👋

Patrick Huck tschaume

👋
View GitHub Profile
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 18, 2024 20:50
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@vkareh
vkareh / dbFields.js
Last active December 3, 2021 19:46
MongoDB script that returns a flattened list of all fields ever used on a specific collection
// Return a flattened list of all fields ever used on a MongoDB collection.
// Usage: `mongo --quiet <database> dbFields.js`
// Collection for which to get fields
var collection = 'users';
// Determines how to represent the keys of an array of objects.
// This allows for differentiating between nested objects and nested arrays of objects.
//
// e.g. for a document
@veselosky
veselosky / s3gzip.py
Last active May 8, 2023 21:42
How to store and retrieve gzip-compressed objects in AWS S3
# vim: set fileencoding=utf-8 :
#
# How to store and retrieve gzip-compressed objects in AWS S3
###########################################################################
#
# Copyright 2015 Vince Veselosky and contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at