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
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
#!/usr/bin/env zsh | |
# This script prints a bell character when a command finishes | |
# if it has been running for longer than $zbell_duration seconds. | |
# If there are programs that you know run long that you don't | |
# want to bell after, then add them to $zbell_ignore. | |
# | |
# This script uses only zsh builtins so its fast, there's no needless | |
# forking, and its only dependency is zsh and its standard modules | |
# |
<?php | |
$report = array( | |
'skips'=>0, | |
'updates'=>0, | |
'deletes'=>0, | |
'additions'=>0 | |
); // ?? | |
$source = "Sometime drupal sucks"; | |
$translation = "Drupal C DLA BALLE"; |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
<?php | |
// load the 'fpdf' extension | |
require('fpdf.php'); | |
// just for demonstration purpose, the OP gets the content from a database instead | |
$h_img = fopen('img.jpg', "rb"); | |
$img = fread($h_img, filesize('img.jpg')); | |
fclose($h_img); | |
// prepare a base64 encoded "data url" |
This launchd script will ensure that your Docker environment on your Mac will have 10.254.254.254
as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 10.254.254.254
.
Once your machine has a well known IP address, your PHP container will then be able to connect to it, specifically XDebug can connect to it at the configured xdebug.remote_host
.
Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...
<?php | |
/** | |
* Implements hook_form_FORM_ID_alter(). | |
* | |
* Move your field or group of fields to the node form options vertical tabs. | |
*/ | |
function mymodule_form_node_form_alter(&$form, FormState $form_state, $form_id) { | |
$form['mygroup'] = [ |
<?php | |
/** | |
* Keep yours custom block in code! | |
* | |
* This approach let you avoid this error: | |
* "This block is broken or missing. You may be missing content or you might need to enable the original module." | |
*/ | |
/** |
<?php | |
namespace App\Filter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use ApiPlatform\Core\Exception\InvalidArgumentException; | |
use Doctrine\ORM\QueryBuilder; |