- XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
- Running Docker v20.10+
- VSCode with PHP Debug Extension (Felix Becker)
- Using Docker Compose for orchestration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ node hls-repeat.js | |
// Example (2 reps): http://localhost:8000/slate-consuo2.mp4/master.m3u8?r=2 | |
// where r is how many times the VOD to be repeated | |
const { HLSProxy } = require("@eyevinn/hls-proxy"); | |
const HLSRepeatVod = require("@eyevinn/hls-repeat"); | |
const proxy = new HLSProxy({ | |
originHandler: async () => { | |
// Origin where the VOD is found |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.git-graph { | |
text-align: left; | |
line-height: 1; | |
} | |
.git-graph-row { | |
clear: both; | |
text-align: left; | |
} | |
.git-graph-cell { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This gist shows an example of an ingest application based on Eyevinn Ingest Application Framework [1] plugins | |
// to watch a folder for a new MP4-file and upload and transcode on AWS using AWS MediaConvert. | |
// Copyright 2021 Jonas Birmé | |
// | |
// [1] https://eyevinn.github.io/ingest-application-framework/ | |
const { AwsUploadModule } = require("@eyevinn/iaf-plugin-aws"); | |
const { watch } = require("chokidar"); | |
const { createReadStream } = require("fs"); |
This is some sort of answer to recent posts regarding Web Components, where more than a few misconceptions were delivered as fact.
Let's start by defining what we are talking about.
As you can read in the dedicated GitHub page, Web Components is a group of features, where each feature works already by itself, and it doesn't need other features of the group to be already usable, or useful.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TRIGGER IF EXISTS TR_contacts_on_insert; | |
DELIMITER ;; | |
CREATE TRIGGER TR_contacts_on_insert | |
AFTER INSERT ON Contacts | |
FOR EACH ROW | |
BEGIN | |
SELECT NEW.email , NEW.fullname | |
INTO @Email , @Fullname; | |
lambda_async( | |
'arn:aws:lambda:REGION:ACCOUNT_ID:function:SendEmailWithContact', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For all snippets, check documentation for details and settings. | |
# encode video from a V4L2 device, using specified settings. | |
# x265 worked somewhat better here and produced less skips (although uses 10x CPU compared to x264) | |
ffmpeg -f video4linux2 -framerate 30 -input_format mjpeg -video_size 1920x1080 -i /dev/video6 -c:v libx265 -preset ultrafast -c:a none -crf 20 out.mp4 | |
# Convert a raw YUYV422 frame from my USB "microscope" to PNG: | |
# other valid pixel formats are e.g. rgb24 or yuv420p | |
ffmpeg -f rawvideo -video_size 2592x1944 -pixel_format yuyv422 -i input_yuyv422_2592x1944.dat -f image2 output.png |
Photo by Ricardo Gomez Angel on Unsplash
This gist is a collection of common patterns I've personally used here and there with Custom Elements.
These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
NewerOlder