- Python 3
- Pip 3
$ brew install python3| function vote { | |
| curl --silent https://alex.github.io/nyt-2020-election-scraper/battleground-state-changes.csv | \ | |
| awk -v red="$(tput setaf 1)" \ | |
| -v blue="$(tput setaf 4)" \ | |
| -v reset="$(tput sgr0)" \ | |
| -F "," ' | |
| NR==1 { next } | |
| matches[$1] == 1 { next } | |
| { | |
| matches[$1]=1 |
| #!/bin/sh | |
| # add this to your bitbar directory | |
| # don't forget to chmod +x | |
| # width and characters for the progress bars | |
| # feel free to configure these | |
| width=30 | |
| fill_char="█" | |
| empty_char="▁" |
| #!/usr/bin/env python | |
| ##### USE ON YOUR OWN RISK - THIS IS GOING TO DEREGISTER AMI OLDER THAN 30 DAYS | |
| import boto3 | |
| from dateutil.parser import parse | |
| import datetime | |
| age = 30 | |
| aws_profile_name = 'prod' | |
| def days_old(date): | |
| get_date_obj = parse(date) |