Open the terminal and type git. If it not installed, you will see a dialog box with a button to install it. Click on the button and git will be installed in a couple of minutes.
$ git --version
git version 2.15.2 (Apple Git-101.1)| <?php | |
| ## openssl genrsa -out key.pem 1024 | |
| ## openssl rsa -in key.pem -pubout -outform PEM -out pubkey.pem | |
| ## openssl rsa -in key.pem -pubout -outform DER -out pubkey.der | |
| function hextobin($hexstr) | |
| { | |
| $n = strlen($hexstr); | |
| $sbin=""; |
| <?php | |
| function timer(callable $block) { | |
| $start = microtime(true); | |
| for ($i = 0; $i < 100000; ++$i) { | |
| $block(); | |
| } | |
| $end = microtime(true); | |
| return $end - $start; | |
| } |
| for user in $(aws iam list-users --output text --no-cli-pager | awk '{print $NF}'); do | |
| aws iam list-access-keys --user $user --output text --no-cli-pager | |
| test $? -gt 128 && exit | |
| done |
Open the terminal and type git. If it not installed, you will see a dialog box with a button to install it. Click on the button and git will be installed in a couple of minutes.
$ git --version
git version 2.15.2 (Apple Git-101.1)| <?php | |
| namespace App\DataTables; | |
| use App\Asset; | |
| use Yajra\DataTables\Services\DataTable; | |
| class AssetsDataTable extends DataTable | |
| { | |
| /** |
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
| <?php namespace App\DataTables\Concerns; | |
| use Illuminate\Contracts\Routing\ResponseFactory; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\HttpFoundation\BinaryFileResponse; | |
| trait ExportableLargeData | |
| { | |
| /** | |
| * @var string |