This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
#!/bin/bash | |
# SOURCE: https://git-scm.com/docs/githooks | |
# SOURCE: https://gist.github.com/bartoszmajsak/1396344 | |
#==================================================================================================# | |
# Loosely enforces a [PROJECT]-[TICKET] naming structure for Git commits based on Git branch name. # | |
#==================================================================================================# | |
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
class RewriteLinks | |
{ | |
/** | |
* Handle an incoming request. |
#!/bin/bash | |
brew install redis # Install Redis using Homebrew | |
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents # Enable Redis autostart | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist # Start Redis server via launchctl | |
# homebrew.mxcl.redis.plist contains reference to redis.conf file location: /usr/local/etc/redis.conf | |
redis-server /usr/local/etc/redis.conf # Start Redis server using configuration file, Ctrl+C to stop | |
redis-cli ping # Check if the Redis server is running |
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |
Creating a USD charge on a GBP account:
$ curl https://api.stripe.com/v1/charges \
-u REDACTED: \
-d amount=400 \
-d currency=usd \
-d card[number]=4242424242424242 \
-d card[exp_month]=04 \
-d card[exp_year]=16 \
-d card[cvv]=390 \
body { | |
font: 12px verdana; | |
background-color: #5C87B2; | |
} | |
form { | |
max-width: 400px; | |
padding: 15px; | |
background-color: white; | |
} |