Skip to content

Instantly share code, notes, and snippets.

View yehanny's full-sized avatar
🏠
Working from home

Yehanny Olivares yehanny

🏠
Working from home
View GitHub Profile
@ihsangan
ihsangan / index.js
Last active August 30, 2024 08:42
Send email from Workers with MailChannel API
async function readRequestBody(request) {
const { headers } = request;
const contentType = headers.get('content-type') || '';
if (contentType.includes('application/json')) {
return JSON.stringify(await request.json());
} else if (contentType.includes('form')) {
const formData = await request.formData();
const body = {};
for (const entry of formData.entries()) {
body[entry[0]] = entry[1];
@yehanny
yehanny / docker-compose-wordpress.yaml
Last active December 28, 2020 21:43 — forked from pablokbs/docker-compose-wordpress.yaml
Docker-compose para wordpress con mysql
## docker-compose para correr wordpress con una base de datos en mysql
## by PeladoNerd https://youtu.be/eoFxMaeB9H4
version: "3.8"
services:
wordpress:
image: wordpress:latest
container_name: wp_site_name
ports: