Skip to content

Instantly share code, notes, and snippets.

View exileed's full-sized avatar
🎵
null

Dmitriy Kuts exileed

🎵
null
View GitHub Profile
<?php
$sitemap = "sitemap.xml";
$startUrl = "http://php.net";
$extencions = [
".html",
".php",
"/",
];
$scanned = [];
@exileed
exileed / Can.php
Last active May 14, 2018 15:01 — forked from myvitaliy/index.php
index.php
<?php
namespace twelve;
require_once 'CanMove.php';
class Car
{
use CanMove;
<?php
/* connect to gmail */
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = '****@gmail.com';
$password = 'PASSword';
echo "<script>console.log( 'Debug Objects: " . $username . "' ); </script>";
/* try to connect */
$items = array(
@exileed
exileed / index.html
Last active August 29, 2018 13:25 — forked from webstoun/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>uniMail</title>
</head>
<body>
<form action="mail.php" method="POST">
@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;"
<?php
class AbstractEntity extends Entity
{
protected static $applyScope = true;
public static function boot()
{
parent::boot();
if(static::$applyScope) {
@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;
@exileed
exileed / test.txt
Created December 16, 2019 22:00
Weekly development breakdown
Weekly development breakdown
<?php
$host = 'loct';
$database = 'o';
$user = 'ro';
$password = 'ro00';
$link = mysqli_connect($host, $user, $password, $database)
or die("Ошибка " . mysqli_error($link));
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