load_module modules/ngx_rtmp_module.so; | |
... | |
rtmp { | |
server { | |
listen 0.0.0.0:1935; | |
# if you want to run all on one server, change port here, eg: | |
# listen 127.0.0.1:1936; | |
chunk_size 4000; | |
notify_method get; | |
interleave on; |
#!/usr/bin/env node | |
// Generates renovate config to fix @types and package running out of sync | |
// See https://github.com/renovatebot/renovate/issues/4893 | |
const path = require("path"); | |
const fs = require("fs"); | |
// This script lies under scripts/update-renovate.js, therefore the .. | |
const renovatePath = path.resolve(__dirname, "../renovate.json"); |
#!/usr/bin/env python3 | |
# | |
# Usage: dedup-imovie-library.py LIBRARY ORIGINALS | |
# | |
# Public gist: | |
# https://gist.github.com/miguelmorin/92cd8b820fd0135bf0f7d5fea90dc3f1 | |
# | |
# This code was inspired by this post and gist, and converted to Python | |
# https://benhollis.net/blog/2014/06/28/hard-linking-videos-to-save-space-in-your-imovie-library/ | |
# https://gist.github.com/bhollis/6682c8b6b6357e2fedc5 |
If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.
// Simple gist to test parallel promise resolution when using async / await | |
function promiseWait(time) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve(true); | |
}, time); | |
}); | |
} |
#!/usr/bin/env bash | |
echo "php-cs-fixer pre commit hook start" | |
PHP_CS_FIXER="bin/php-cs-fixer" | |
PHP_CS_CONFIG=".php_cs" | |
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.php') | |
if [ -n "$CHANGED_FILES" ]; then | |
$PHP_CS_FIXER fix --config "$PHP_CS_CONFIG" $CHANGED_FILES; | |
git add $CHANGED_FILES; |
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.