Skip to content

Instantly share code, notes, and snippets.

@NakedFerret
NakedFerret / list-file-contributors.py
Last active March 9, 2018 17:00
Python script that queries git to list contributors to your files. Can ignore people and detect multiple username for one contributor. Outputs CSV
#!/usr/bin/env python
import subprocess
# Inspiration: https://stackoverflow.com/a/11740682
r = subprocess.check_output(['git','ls-tree','-r','--name-only','origin/master','./'])
files = r.split();
ignoredPeeps = set(['Laima Tazmin', 'Cara Warner', 'Patty Delgado', 'Matt Anderson', 'r29bot'])
@NakedFerret
NakedFerret / shell.nix
Created October 18, 2024 15:10
This is an example configuration file used by `nix-shell`. By default `nix-shell` looks for either 'shell.nix' or 'default.nix' in the current path. Everything specified in `buildInputs` is available once inside the shell. To find the right name for each utility, refer to https://search.nixos.org/packages. To initialize the shell, simply run `ni…
with (import <nixpkgs> {});
mkShell {
buildInputs = [
rsync
python3
morph
nixpkgs-fmt
livebook
zellij