This file contains 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
/** | |
* source: | |
* https://github.com/guzzle/guzzle/blob/7.5/src/MessageFormatter.php#L12 | |
* | |
* Formats log messages using variable substitutions for requests, responses, | |
* and other transactional data. | |
* | |
* The following variable substitutions are supported: | |
* | |
* - {request}: Full HTTP request message |
This file contains 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
.htaccess flag list | |
C Chained with next rule | |
CO Cookie (set specified cookie | |
E var:value (set Environment variable var to value) | |
F Forbidden - sends a 403 header to the user | |
G Gone - no longer exists | |
H Handler (set handler) | |
L Last - stop processing rules |
This file contains 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
./configure OPENSSL_CFLAGS=-I/opt/openssl/include/ OPENSSL_LIBS="-L/opt/openssl/lib64/ -lssl -lcrypto" \ | |
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig \ | |
--with-config-file-path=/etc/php \ | |
--sysconfdir=/etc/php.d \ | |
--enable-mysqlnd \ | |
--with-pdo-mysql \ | |
--with-pdo-mysql=mysqlnd \ | |
--with-pdo-pgsql=/usr/bin/pg_config \ | |
--enable-bcmath \ | |
--enable-fpm \ |
This file contains 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\Http\Middleware; | |
use Closure; | |
use Symfony\Component\HttpFoundation\ParameterBag; | |
/** | |
* @author https://github.com/Stunext | |
* |
This file contains 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 | |
// Open the file for reading | |
if (($myfile = fopen("myfile.csv", "r")) !== FALSE) { | |
// Convert each line into the local $data variable | |
while (($data = fgetcsv($myfile, 1000, ",")) !== FALSE) { | |
// Read the data from a single line | |
$nama = $data[0]; | |
$nik = $data[1]; | |
$unit_kerja = $data[2]; |
This file contains 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\Providers; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\Exception\RequestException; | |
use GuzzleHttp\HandlerStack; | |
use GuzzleHttp\Middleware; | |
use GuzzleHttp\Promise\PromiseInterface; | |
use Illuminate\Contracts\Foundation\Application; |
This file contains 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 | |
/*############################# | |
* Developer: Mohammad Sharaf Ali | |
* Designation: Web Developer | |
* Version: 1.0 | |
*/############################# | |
// SETTINGS | |
ini_set('max_execution_time', 0); |
This file contains 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
export $(grep -v '^#' .env | xargs) |
This file contains 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 | |
/** | |
* Create Subdomains | |
* | |
* Note: This script was designed to be called silently by a bash script for project creation. | |
* Add to bash script: php "$HOME/scripts/php/create-subdomains.php" "$new_account_subdomain" | |
* | |
* Requires "jamesryanbell/cloudflare": "^1.11" for the CloudFlare PHP library | |
* Recommends "kint-php/kint": "^3.2" for improved temporary PHP debugging |
This file contains 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
$ composer create-project badaso/starter myapp | |
# edit .env | |
$ php artisan migrate | |
$ php artisan storage:link | |
$ composer dump-autoload | |
$ php artisan db:seed --class="Database\Seeders\Badaso\BadasoSeeder" | |
$ php artisan badaso:admin your@email.com --create | |
$ npm install | |
$ npm run dev | |
$ php artisan jwt:secret |
NewerOlder