Skip to content

Instantly share code, notes, and snippets.

@infused-kim
infused-kim / ls_colors_gen.py
Last active April 17, 2023 01:30
Exa LS_COLORS theme generator
#!/usr/bin/env python
#
# What is this:
# This script generates an LS_COLORS theme.
#
# By default it is using the same colors as the ls replacement exa. The
# purpose is to generate an LS_COLORS theme that is consistent with exa's
# colors so that it can be used by other tools like fzf.
#
@infused-kim
infused-kim / clean_tabular_editor_export.py
Created March 31, 2021 07:17
Script that removes `lineageTag` and `annotations` keys from Tabular Editor's `Save to folder` export
import argparse
import os
import json
def remove_keys_from_dict(d, keys):
did_clean = False
if isinstance(d, dict):
for k, v in list(d.items()):