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 python | |
"""Exploring different ways to fetch data from Athena""" | |
from decimal import Decimal | |
import codecs | |
import datetime | |
import random | |
import string | |
from urllib.parse import urlparse | |
import pytz | |
from boto3.session import Session |
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 python | |
# Download a folder recursively from S3 | |
# Requires Python 3.6+ | |
from urllib.parse import urlparse | |
from pathlib import Path | |
import boto3 | |
import fire | |
from tqdm import tqdm | |
def progress_bar_hook(t): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/bin/bash | |
# Connects the last n monitors using xrandr side-by-side. | |
# xrandr normally lists the inbuilt monitor first so this will | |
# prefer external displays. | |
set -exu | |
nummonitor=2 | |
# Get last n output displays that are currently connected | |
connectedOutputs=$(xrandr --current |\ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.