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
| #Before we can use the script, we have to make it executable with the chmod command: | |
| #chmod +x ./go-executable-build.sh | |
| #then we can use it ./go-executable-build.sh yourpackage | |
| #!/usr/bin/env bash | |
| package=$1 | |
| if [[ -z "$package" ]]; then | |
| echo "usage: $0 <package-name>" | |
| exit 1 | |
| fi |
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
(Based on info from Peter Downs' gitub but with modified behavior to open a new terminal window for each invocation instead of reusing an already open window.)
The following three ways to launch an iTerm2 window from Finder have been tested on iTerm2 version 3+ running on macOS Mojave+.
pdanford - April 2020
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** | |
| * Bootstrap any application services. |
| <?php namespace App\Http\Middleware; | |
| // First copy this file into your middleware directoy | |
| use Closure; | |
| class CheckRole{ | |
| /** | |
| * Handle an incoming request. |
| /** | |
| * Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
| * | |
| * insertOrUpdate([ | |
| * ['id'=>1,'value'=>10], | |
| * ['id'=>2,'value'=>60] | |
| * ]); | |
| * | |
| * | |
| * @param array $rows |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| <?php | |
| class BaseModel extends Eloquent { | |
| public static function isJoined($query, $table) | |
| { | |
| $joins = $query->getQuery()->joins; | |
| if($joins == null) { | |
| return false; | |
| } |
Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.