run this before multiple-import-mysql.sh
mysqldump -uroot -p --no-data --all-databases > dump.sql
mysql -uroot -p > dump.sql
#!/usr/bin/php | |
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
require_once __DIR__ . '/web/config.php'; | |
$cli = ((new class () extends \Dframe\Controller { | |
public function init($args) | |
{ |
<?php | |
/** | |
* PSR-3 Adapter for Dframe/activityLog | |
*/ | |
namespace Dframe\ActivityLog\Helper; | |
use Dframe\ActivityLog\Activity; | |
use Psr\Log\AbstractLogger; |
<?php | |
namespace Model; | |
/** | |
* Class Database | |
* Klasa rozbudowuje transakcje o lvl | |
* | |
* @package Model | |
*/ | |
class Database extends \Dframe\Database\Database |
<?php | |
class Search | |
{ | |
/** | |
* @var array | |
*/ | |
public $search = []; |
<?php | |
/** | |
* DframeFramework | |
* Copyright (c) Sławomir Kaleta. | |
* | |
* @license https://github.com/dframe/dframe/blob/master/LICENCE (MIT) | |
*/ | |
namespace Core; |
<?php | |
$page = (!isset($_GET['p']) or is_int($_GET['p']) != true) ? '1' : $_GET['p']; | |
$limit = '50'; | |
$start = ($page - 1) * $limit; | |
// Example implement | |
//$sql = 'SELECT * FROM suppliers order by name ASC LIMIT ' . $start . ', ' . $limit; | |
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: php:7.3 | |
pipelines: | |
tags: # add the 'tags' section | |
v*: # specify the tag |
Replace DIR or FILE to you folder
git filter-branch --index-filter 'git rm --cached -qr --ignore-unmatch -- . && git reset -q $GIT_COMMIT -- DIR DIR FILE' --prune-empty -- --all
<?php | |
try { | |
$client = new Client(); | |
$response = $client->request('GET', 'NAME_MICROSERVICE:80/SLUG'); | |
$body = \GuzzleHttp\json_decode($response->getBody(), true); | |
$statusCode = $response->getStatusCode(); | |
} catch (GuzzleException $e) { | |
return Response::renderJSON(['code' => 500, 'message' => $e->getMessage()])->status(500); | |
} |