redis-server --version
redis-cli --version
apt-get install build-essential
| Step 1 | |
| Install using composer this package | |
| composer require kopokopo/k2-connect-php | |
| Step 2 | |
| Get production credentials from your KopoKopo account. Feed the requisite parameters and you are ready to go. |
| #!/bin/bash | |
| sudo apt install software-properties-common && sudo add-apt-repository ppa:ondrej/php -y | |
| sudo apt update | |
| sudo apt upgrade -y | |
| sudo apt install php8.1 -y | |
| sudo apt install php8.1-bcmath -y | |
| sudo apt install php8.1-bz2 -y | |
| sudo apt install php8.1-cli -y | |
| sudo apt install php8.1-common -y | |
| sudo apt install php8.1-curl -y |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
| <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script> | |
| <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> | |
| <title>Alpine and axios</title> | |
| </head> |
| import asyncio | |
| import random | |
| q = asyncio.Queue() | |
| async def producer(num): | |
| while True: | |
| await q.put(num + random.random()) | |
| await asyncio.sleep(random.random()) |
When you read about how to create and consume a pre-signed url on this guide, everything is really easy. You get your Postman and it works like a charm in the first run.
Then you open your browser, try your usual $.ajax() and send your PUT operation, and you hit the cold iced wall of AWS error message, a simple <Code>SignatureDoesNotMatch</Code> that will steal hours from your productivity.
So here I come to save you and give you a free working example of how to upload a file directly to AWS S3 from your browser. You are wellcome :).
| [supervisord] | |
| nodaemon=true | |
| loglevel=debug | |
| [program:amon] | |
| command=gunicorn -c gunicorn.conf.py wsgi | |
| directory=/amon | |
| autostart=true | |
| autorestart=true | |
| redirect_stderr=true |
| Afghanistan | |
| Albania | |
| Algeria | |
| Andorra | |
| Angola | |
| Antigua & Deps | |
| Argentina | |
| Armenia | |
| Australia | |
| Austria |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.