Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
#!/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
This is now part of craft-scripts: | |
https://github.com/nystudio107/craft-scripts |
- pipeline: "Build and deploy to [environment]" | |
trigger_mode: "MANUAL" | |
ref_name: "develop" | |
actions: | |
- action: "Init Atomic Deployment" | |
type: "SSH_COMMAND" | |
working_directory: "${remote_path}/" | |
login: "${user}" | |
host: "${host}" | |
port: "22" |
<template> | |
<form method="post" accept-charset="UTF-8"> | |
<label for="loginName">Username or email</label> | |
<input v-model="loginName" id="loginName" type="text" name="loginName" /> | |
<label for="password">Password</label> | |
<input v-model="password" id="password" type="password" name="password" /> | |
<label> | |
<input v-model="rememberMe" type="checkbox" name="rememberMe" /> |
{# Bad: Messy and Hard to Follow #} | |
{% if link %} | |
<a href="/recipes/cookies"> | |
{% endif %} | |
<span>Cookies</span> | |
{% if link %} | |
</a> | |
{% endif %} | |
{# Good: Clean & Clear #} |
{% if article is defined %} | |
<li> | |
{{article.id}} - {{article.title}} | |
</li> | |
{% endif %} |
Some notes here~ | |
{% if relatedArticlesSelect | length == 3 %} | |
{% set relatedArticles = entry.relatedArticlesSelect.limit(3).all() %} | |
is the same as | |
{% set relatedArticlesSelect = entry.relatedArticlesSelect.all() %} | |
if you know there are only going to be three elements. dot all will fetch all of the elements attached |