This python script checks your flight reservation with Southwest and then checks you in at exactly 24 hours before your flight. Queue up the script and it will sleep
until the earliest possible check-in time.
This script can either be ran directly on your host or within Docker.
- Python (should work with 2.x or 3.x thanks to @ratabora)
- pip
- Docker (tested with 1.12.6)
$ pip install -r requirements.txt
$ python ./checkin.py CONFIRMATION_NUMBER FIRST_NAME LAST_NAME
# SSH into
ssh -i /path/my-key-pair.pem my-instance-user-name@my-instance-public-dns-name
# Become root
sudo su -
# Runs in detached mode
docker run -it kim-nguyenkhn/southwestcheckin:latest CONFIRMATION_NUMBER FIRST_NAME LAST_NAME
# List all docker instances
docker ps -a
# Tail logs
docker logs --tail 100 DOCKER_CONTAINER_ID
# Clean all exited containers
docker ps -qaf status=exited | xargs docker rm
# Remove all unused images
docker images -f dangling=true -q | xargs docker rmi
# List the machine's time zones
timedatectl
# Set timezone
timedatectl set-timezone America/Los_Angeles
From the AWS docs: Link
ssh -i /path/my-key-pair.pem my-instance-user-name@my-instance-public-dns-name
# Become root
sudo su -
# Become docker
su docker
# Enter python3
python3
# Build the docker image
make docker
# Release the docker image
make release