Skip to content

Instantly share code, notes, and snippets.

View iamkingalvarado's full-sized avatar
🏎️
Keep f*cking building

Daniel G. Alvarado iamkingalvarado

🏎️
Keep f*cking building
View GitHub Profile
@iamkingalvarado
iamkingalvarado / Example.html
Last active December 23, 2021 08:34 — forked from Danielku15/Example.html
A MediaTypeFormatter for WebApi for multipart/form-data including file uploads
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>File Upload example</title>
<link href="/Content/bootstrap.css" rel="stylesheet" />
</head>
<body>
<form action="api/Upload" method="post">
<div class="form-group">
@iamkingalvarado
iamkingalvarado / firebase-notification-with-curl.sh
Created August 15, 2023 06:48 — forked from sergsoares/firebase-notification-with-curl.sh
Simple curl to send a notification to firebase with a deviceID.
curl -d '{
"to": DEVICE_ID,
"notification": {
"title" : " This is my title new ",
"body" : " This is the body of my message "
}
}' \
-i -H "Application/json" \
-H "Content-type: application/json" \
-H "Authorization: key=YOUR_AUTH_KEY \