Skip to content

Demonstration of how to upload birthday video messages to President Trump, as requested by his supporters, using the command line.

Notifications You must be signed in to change notification settings

john-tipper/happy-birthday-mr-president

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Happy Birthday, Mr President.

The President has his birthday coming up and his supporters have specifically requested that people upload video messages for him (see details).

This repo contains a Bash script that demonstrates how to upload a video file to AWS S3 from the command line, instead of from a browser.

Pre-requisites

Requires curl and jq.

Running

Download the script, set it to be executable:

chmod +x happy-birthday.sh

To see options, just run the script without options:

$ happy-birthday.sh

To upload a particular file and accept defaults:

$ happy-birthday.sh -f /path/to/my/video/file

Description

The script first connects to the main website to get a CSRF token and cookie (which is written to a file called cookie.txt). These are then used to get AWS connection details that describe how to upload the file to S3. The final call to curl then uploads to S3.

About

Demonstration of how to upload birthday video messages to President Trump, as requested by his supporters, using the command line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages