Skip to content

Instantly share code, notes, and snippets.

View exileed's full-sized avatar
🎵
NP: ZOMBIFIED (Falling In Reverse) (0:01/3:38)

Dmitriy Kuts exileed

🎵
NP: ZOMBIFIED (Falling In Reverse) (0:01/3:38)
View GitHub Profile
<?php
interface 😺
{
public function phpyh(string $x): iterable;
}
abstract class 😹 implements 😺
{
abstract public function phpyh(int|string $x): array|\Generator;
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreWordRequest;
use App\Http\Requests\UpdateWordRequest;
use App\Models\Word;
class WordController extends Controller
{
@exileed
exileed / androidemulator.md
Created April 2, 2021 09:24 — forked from manojkulkarni30/androidemulator.md
Start Android Emulator From Command Line With Hyper V Feature Enabled
image: exileed/php-testing:7.4
pipelines:
default:
- parallel:
- step:
name: CodeStyle Check
caches:
- composer
script:
image: exileed/php-testing:7.4
variables:
MYSQL_DATABASE: notification
MYSQL_ROOT_PASSWORD: secret
DB_HOST: mysql
DB_USERNAME: root
DB_PASSWORD: $MYSQL_ROOT_PASSWORD
DB_DATABASE: $MYSQL_DATABASE
<?php
$host = 'loct';
$database = 'o';
$user = 'ro';
$password = 'ro00';
$link = mysqli_connect($host, $user, $password, $database)
or die("Ошибка " . mysqli_error($link));
@exileed
exileed / test.txt
Created December 16, 2019 22:00
Weekly development breakdown
Weekly development breakdown
@exileed
exileed / index.php
Last active November 10, 2019 15:26
<?php
// PSR-12
// где phpdoc?
class Database
{
static private $instance = null;
private $connect;
private $config;
<?php
class AbstractEntity extends Entity
{
protected static $applyScope = true;
public static function boot()
{
parent::boot();
if(static::$applyScope) {
@exileed
exileed / .gitlab-ci.deployments.yml
Created September 6, 2018 12:38
.gitlab-ci laravel
image: lorisleiva/laravel-docker:latest
before_script:
- mkdir -p ~/.ssh
- echo "$PACKAGE_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- mysql -h $DB_HOST -u root -p$MYSQL_ROOT_PASSWORD -e "SHOW DATABASES;"