A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| <?php | |
| function read_cb($ch, $fp, $length) { | |
| return fread($fp, $length); | |
| } | |
| $fp = fopen('php://memory', 'r+'); | |
| $string = "From: <no-reply@example.com>\r\n"; | |
| $string .= "To: <hdogan@example.com>\r\n"; | |
| $string .= "Date: " . date('r') . "\r\n"; | |
| $string .= "Subject: Test\r\n"; |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
| cd ~ | |
| apt-get install libfontenc1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y | |
| #https://github.com/wkhtmltopdf/wkhtmltopdf/releases | |
| #replace arch | |
| wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb | |
| dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb | |
| apt --fix-broken install |
[web/]typo3conf/ext/ of your composer mode TYPO3 (or kickstart one with extension_builder)."autoload": {
"psr-4": {
"T3easy\\MyExt\\": "web/typo3conf/ext/my_ext/Classes/"
}
}composer dump-autoload -a to update the autoloader.| ffmpeg -i input.mov -vcodec libwebp -lossless 1 -q:60 -preset default -loop 0 -an -vsync 0 output.webp |
The aim of this gist is to fix the following informative post about uploading via XHR.
The first part is the HTML. First of all, you really don't need JavaScript to upload a file but you do need a proper form. Secondly, inputs in a form shouild have a name, because the name is what the server will receive: not IDs, names!
Following the fixed form part.
On mac:
/usr/local/bin.To connect to MSSQL using PHP 5.6 we'll need to use PDO's DBLIB (PDO_DBLIB) http://php.net/manual/en/ref.pdo-dblib.php and FreeTDS http://www.freetds.org/
This quick tutorial is using Ubuntu Server 14.04
First, make sure you're up to date on all of your packages.
sudo apt-get updatesudo apt-get upgradesudo apt-get dist-upgradeI'm using PHP 5.6.9 (https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6)