Skip to content

Instantly share code, notes, and snippets.

View MuriloMazzeu's full-sized avatar
SuperCoder

Murilo Mazzeu MuriloMazzeu

SuperCoder
View GitHub Profile
@adilmughal
adilmughal / blog.web.config
Last active September 14, 2023 17:56 — forked from anonymous/blog.web.config
Web.config URL rewriting rules for hosting WordPress (PHP) on IIS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Remove html" stopProcessing="true">
<match url="(.*).html$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
@miljan-aleksic
miljan-aleksic / Stream.php
Last active December 5, 2023 01:17
Cloudflare Streams - Signed URL php example
<?php
class Stream
{
/**
* Signs a url token for the stream reproduction
*
* @param string $uid The stream uid.
* @param array $key The key id and pem used for the signing.
* @param string $exp Expiration; a unix epoch timestamp after which the token will not be accepted.