This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage example: | |
# /usr/local/bin/ffmpeg -i test.mp4 -acodec aac -strict experimental -ac 2 -ab 128k -vcodec libx264 -preset slow -f mp4 -s 640x480 test-out.mp4 | |
mkdir -p ~/ffmpeg_sources ~/bin | |
rm -rf ~/ffmpeg_build ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,x264,x265 | |
apt-get update -qq && apt-get -y install \ | |
autoconf \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: this is a local test with vars_prompt | |
hosts: 127.0.0.1 | |
connection: local | |
pre_tasks: | |
- import_tasks: tasks/pre/load-vars.yml | |
vars_prompt: | |
- name: "company" | |
prompt: "Company of the project (lowercase)" | |
default: "mycompany" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Carbon\Carbon; | |
use Illuminate\Support\Facades\Session as SessionFacade; | |
/** | |
* Trait I18nTrait | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Mail\Trainer; | |
use App\I18nTrait; | |
use App\Model\User; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Listeners\Trainer; | |
use App\Event\UserRegistered; | |
use App\I18nTrait; | |
use App\Mail\Trainer\Welcome; | |
use Illuminate\Config\Repository as Config; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Mail\Mailer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE <table> SET <column> = CONVERT(BINARY CONVERT(<column> USING latin1) USING utf8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Some more definitions above... | |
- | |
type: ezselection | |
name: Abstract Position | |
identifier: abstract_position | |
required: true | |
default-value: left | |
field-settings: | |
isMultiple: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyClass | |
{ | |
public function export() | |
{ | |
$exportable = $this->prepareData($tags); | |
// ... | |
$excel->sheet('Tags', function ($sheet) use ($exportable) { | |
$sheet->fromGenerator($exportable, null, 'A1', false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (i = 0; i < 10000; i++) { | |
$('#container').append(i + '<br />') | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
class Test | |
{ | |
public static function sum(int ... $numbers): int | |
{ | |
return array_sum($numbers); | |
} | |
} |