Skip to content

Instantly share code, notes, and snippets.

View JoernBerkefeld's full-sized avatar
😋

Jörn Berkefeld JoernBerkefeld

😋
View GitHub Profile
@davidwkeith
davidwkeith / index.html
Last active April 16, 2023 02:52
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom protocol handlers. Licensed under the WFTPL http://www.wtfpl.net/txt/copying/
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!--
NOTE: This was a great hack in days gone by, but now both Apple and Google have improved their support for custom
protocol handlers.
@zxbodya
zxbodya / S3-CORS-config.xml
Last active August 20, 2023 01:00
Client side uploads to s3, with pre-signed upload form (PHP/JS)
View S3-CORS-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>