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 | |
| $serverName = "sqlserver.example.com"; | |
| $database = "myDbName"; | |
| $uid = 'sqlserver_username'; | |
| $pwd = 'password'; | |
| try { | |
| $conn = new PDO( | |
| "sqlsrv:server=$serverName;Database=$database", | |
| $uid, |
| <?php | |
| /** | |
| * Catch php output buffering data over jQuery AJAX | |
| * | |
| * @author: Sohel Rana ([email protected]) | |
| * @author url: https://blog.sohelrana.me | |
| * @link: https://blog.sohelrana.me/catch-php-output-buffering-data-jquery-ajax/ | |
| * @licence MIT | |
| */ |
| #!/bin/bash | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo -i export CPPFLAGS="-DSIZEOF_LONG_INT=8" | |
| sudo apt-get -y install gcc-5 g++-5 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 | |
| cd ~ | |
| echo "Configuring the unixODBC 2.3.1 Driver Manager" |
| Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options | |
| This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full. | |
| usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}… | |
| Getting help: | |
| -h — print basic options | |
| -h long — print more options | |
| -h full — print all options (including all format and codec specific options, very long) |
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
$ uname -r
| #!/bin/bash | |
| #ubuntu 20.04 | |
| #php7.4 | |
| # install php ppa | |
| apt -y install software-properties-common | |
| add-apt-repository ppa:ondrej/php -y | |
| apt update |
| <?php | |
| class LlamaAI { | |
| private string $hostname; | |
| private string $domainPath; | |
| private string $apiToken; | |
| private array $headers; | |
| private array $queue = []; | |
| public function __construct(string $apiToken, string $hostname = 'https://api.llama-api.com', string $domainPath = '/chat/completions') { |
| //adapted for Zapier | |
| import requests | |
| import time | |
| # ----------------------------- | |
| # INPUTS FROM ZAPIER | |
| # ----------------------------- | |
| stored_token = input_data.get("stored_token") # From Storage by Zapier | |
| stored_expires_at = input_data.get("stored_expires_at") # Unix timestamp (string) |