This file contains hidden or 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/sh | |
# Script to install Chrome Headless Shell and ChromeDriver for testing | |
# Usage: chmod +x install_chrome-headless_chrome-driver.sh | |
# ./install_chrome-headless_chrome-driver.sh [version] | |
# If no version is provided, it will use the default version specified below | |
# For version information, visit: https://googlechromelabs.github.io/chrome-for-testing/ | |
# Exit on any error |
This file contains hidden or 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 concurrent.futures | |
import boto3 | |
from botocore.exceptions import ClientError | |
def copy_object( | |
destination_client, | |
source_bucket, | |
src_key, |
This file contains hidden or 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 bash | |
# Ref. https://github.com/Unstructured-IO/base-images/blob/main/dockerfiles/deps/tesseract.sh | |
set -ex | |
dnf install -y opencv opencv* zlib zlib-devel perl-core clang libpng libpng-devel libtiff libtiff-devel libwebp libwebp-devel libjpeg libjpeg-devel libjpeg-turbo-devel git-core libtool pkgconfig xz | |
wget https://github.com/DanBloomberg/leptonica/releases/download/1.83.1/leptonica-1.83.1.tar.gz | |
tar -xzvf leptonica-1.83.1.tar.gz | |
cd leptonica-1.83.1 || exit |
This file contains hidden or 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 | |
# Ref. https://docs.docker.com/engine/install/ubuntu/ | |
# Remove existing Docker packages | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove -y $pkg; done | |
# Add Docker's official GPG key | |
sudo apt-get update | |
sudo apt-get install -y ca-certificates curl |