This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Drop this in your xbar plugins folder. | |
# Set to be executable. | |
# Keep your deadline in mind. | |
from datetime import datetime, timedelta | |
DEADLINE = datetime(2022, 12, 31) | |
def main(): | |
days_left = DEADLINE - datetime.now() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var public_key = 'SET THIS YOURSELF'; | |
var private_key = 'ALSO SET THIS YOURSELF'; | |
var cache = CacheService.getDocumentCache(); | |
const CACHE_KEY = 'cardboard_wealth_token_response'; | |
const GROUP_KEY = 'mtg_groups'; | |
const PRICE_KEY = 'mtg_prices'; | |
const PRODUCT_KEY = 'mtd_products'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import boto3 | |
import click | |
from botocore.exceptions import NoCredentialsError | |
@click.command() | |
@click.option('--bucket-name', required=True, help='Name of the S3 bucket.') | |
@click.option('--local-directory', required=True, type=click.Path(exists=True), help='Path to the local directory to sync.') | |
@click.option('--s3-directory', required=True, help='S3 directory (prefix) to sync with.') | |
def sync_s3(bucket_name, local_directory, s3_directory): |