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| <?php | |
| $countries = | |
| array( | |
| "AF" => "Afghanistan", | |
| "AL" => "Albania", | |
| "DZ" => "Algeria", | |
| "AS" => "American Samoa", | |
| "AD" => "Andorra", | |
| "AO" => "Angola", |
| ffmpeg -i shame-run.mov -r 24/1 test/output%03d.jpg |
| docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
| <?php | |
| namespace App\Providers; | |
| use League\Flysystem\Sftp\SftpAdapter; | |
| use Storage; | |
| use League\Flysystem\Filesystem; | |
| use Illuminate\Support\ServiceProvider; | |
| /** |
| <?php | |
| >>> $col = collect(json_decode(json_encode([['id' => 1,'bool' => 0, 'count' => 15], ['id' => 2, 'bool' => 1, 'count' => 20], ['id' => 3, 'bool' => 0, 'count' => 10], ['id' => 4, 'bool' => 1, 'count' => 16]]))) | |
| => Illuminate\Support\Collection {#935 | |
| all: [ | |
| {#936 | |
| +"id": 1 | |
| +"bool": 0 | |
| +"count": 15 | |
| } |
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf: (create the file if it not exists)
| function getPaginatedItems(items, page, pageSize) { | |
| var pg = page || 1, | |
| pgSize = pageSize || 100, | |
| offset = (pg - 1) * pgSize, | |
| pagedItems = _.drop(items, offset).slice(0, pgSize); | |
| return { | |
| page: pg, | |
| pageSize: pgSize, | |
| total: items.length, | |
| total_pages: Math.ceil(items.length / pgSize), |
| <?php | |
| namespace App\Console\Commands; | |
| use Elasticsearch\ClientBuilder; | |
| use Illuminate\Console\Command; | |
| class ElasticRecreateIndex extends Command | |
| { | |
| /** |