Create file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.serviceCreate file /etc/systemd/system/[email protected]
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service| from lxml import html | |
| import requests | |
| import os | |
| root_url = "https://hnarayanan.github.io/springer-books/" | |
| category = "Computer Science" | |
| download_path = f"{os.getcwd()}/downloads/{category.lower().replace(' ', '_')}" | |
| headers = { | |
| "Host": "link.springer.com", | |
| "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0", |
| terraform { | |
| required_version = ">= 0.12" | |
| required_providers { | |
| aws = "~> 2.0" | |
| } | |
| } | |
| provider "aws" { | |
| region = "eu-central-1" |
| #!/usr/bin/env bash | |
| trap ctrl_c INT | |
| function ctrl_c() { | |
| echo "** Trapped Ctrl+C **" | |
| exit 0 # Exit the script with exit code 0 (successful termination) | |
| } | |
| input_dir=$1 |