Skip to content

Instantly share code, notes, and snippets.

View gaalferov's full-sized avatar
⭐⭐⭐⭐

Hennadii Alforov gaalferov

⭐⭐⭐⭐
View GitHub Profile

Write Rest API application for the book library which allow to track what books they have.

(only books, without any other dependencies like clients, etc.)

Acceptance criteria:

Required

  • Application should use the latest PHP version
  • Application should use "composer" to install all dependencies
  • Application should support GET/POST/PATCH/DELETE actions
@gaalferov
gaalferov / debug_whmcs_license_issue.php
Created August 17, 2023 13:59
Debug WHMCS license issue
<?php
require 'init.php';
/** @var \WHMCS\License $licensing */
$licensing = \DI::make("license");
echo '<pre>';
var_dump($licensing->validate());
echo "\r\n";
var_dump($licensing->getDebugLog());
@gaalferov
gaalferov / PHP Tests.md
Last active September 6, 2023 20:12
PHP TESTs

TEST - Simple PHP package for Laravel framework

Write a simple PHP package (packagist.org) for the Laravel framework (standalone).

This library should allow us to get all DNS records for the specified domain name.

Acceptance criteria:

Required

  • Application should use the latest PHP version
@gaalferov
gaalferov / git_cheat_sheet_rus.txt
Last active September 21, 2022 13:28
Git cheat sheet (rus)
Создать новую ветку с названием "dev-20160202-testBranch" из ветки origin/master
git checkout -b dev-20160202-testBranch origin/master
git checkout -b dev-20160308-newdesign-admin origin/new_desing
Создать новую ветку с именем "dev-20150225-gaalferov-newDesign-search" c ветки "origin/dev-20151229-denst-newDesign"
git checkout -b dev-20150225-gaalferov-newDesign-search origin/dev-20151229-denst-newDesign
Проверить какая сейчас ветка активна
git branch
@gaalferov
gaalferov / letcode_top_interview_questions.php
Last active November 7, 2023 20:31
Top Interview Questions [letcode]
<?php
/**
* My solutions for the "Top Interview Questions" on the leetcode
*/
class SolutionTopInterviewQuestions
{
//<editor-fold desc="Array block">
/**
* Remove Duplicates from Sorted Array