Skip to content

Instantly share code, notes, and snippets.

Avatar
💥
blowing my mind

Nick Perkins nickperkins

💥
blowing my mind
View GitHub Profile
@nickperkins
nickperkins / deleteemptyfiles.sh
Last active Apr 21, 2021
Delete empty files from s3
View deleteemptyfiles.sh
aws s3api list-objects --bucket my-bucket-name --output json --query 'Contents[?Size==`0`]' | jq -r '.[] | [.Key] | @tsv' | xargs -n 1 sh -c 'aws s3 rm s3://my-bucket-name/$@' bash
View pyproject.toml
[tool.poetry]
name = "tool-it"
version = "0.1.0"
description = "tooling"
authors = ["Nick Perkins <removed@forprivacy>"]
[tool.poetry.dependencies]
python = "^3.6"
requests = "^2.22.0"
pandas = "^0.25.3"