Skip to content

Instantly share code, notes, and snippets.

View YavorK's full-sized avatar
🥥

Yavor Kirov YavorK

🥥
View GitHub Profile
@YavorK
YavorK / Exercise.md
Created November 14, 2025 13:04 — forked from purrarri/Exercise.md
Q2. Breakdown test cases as in cucumber/ gherkin formatting as for assesment : Mention all necessary fields which should be included in a bug.

Q2 Go to https://petstore.octoperf.com/actions/Catalog.action and report at least 3 bugs.

Bug Report in Gherkin/Cucumber Format

This document serves as a bug report in Gherkin/Cucumber format for reporting an identified issue in the system. The bug report follows the structured format of Gherkin to provide clear details about the bug and its expected behavior.

Usage

The bug report is written using the Gherkin syntax, which allows for easy understanding and communication between stakeholders, developers, and testers. Each bug report includes the following information:

@edofic
edofic / index.html
Created May 6, 2023 19:06
htmx with a "backend" in service worker
<!DOCTYPE html>
<html>
<head>
<title>Hello Page</title>
<script src="https://unpkg.com/htmx.org@1.9.2"></script>
</head>
<body>
<h1>Hello</h1>
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip
unzip /tmp/YaHei.Consolas.1.12.zip
sudo mkdir -p /usr/share/fonts/consolas
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf
cd /usr/share/fonts/consolas
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
@YavorK
YavorK / import-remote-db-with-laravel.php
Last active September 16, 2021 23:21
Import Remote DB with Laravel.
<?php
//import db from original server to local one...
/**
* Instructions:
* 1. Install this package: https://laravelcollective.com/docs/5.3/ssh
* 2. Add those to your .env file and fill up the values:
ORIGINAL_SERVER_SSH_ADDRESS=
ORIGINAL_SERVER_SSH_USERNAME=
@Rich-Harris
Rich-Harris / service-workers.md
Last active December 3, 2025 11:09
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

@mamchenkov
mamchenkov / monolog.php
Last active January 5, 2022 09:31
Example use of Monolog logger
<?php
// Before: composer require monolog/monolog
// composer autoloader
require_once 'vendor/autoload.php';
// Shortcuts for simpler usage
use \Monolog\Logger;
use \Monolog\Formatter\LineFormatter;
use \Monolog\Handler\StreamHandler;