Skip to content

Instantly share code, notes, and snippets.

View ArturJS's full-sized avatar
🎯
Focusing

Artur ArturJS

🎯
Focusing
View GitHub Profile
@ArturJS
ArturJS / sorry-cypress-create-project.sh
Created September 17, 2022 04:25
Sorry cypress create project
# Sometimes when you run sorry-cypress
# and have misconfigured UI which has
# http://localhost:4000 as baseUrl for API backend
# and need to create new project ASAP
# without digging into docs and sources
curl 'http://<your_ip_address>:4000/' \
-H 'sec-ch-ua: "Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"' \
-H 'accept: */*' \
-H 'Referer: http://<your_ip_address>:8080/' \
@ArturJS
ArturJS / css_colors_extractor.js
Created June 8, 2025 17:52
CSS colors extractor
import * as fs from 'fs';
import * as path from 'path';
const cssDir = 'src';
const outputFile = 'src/vars.css';
const hexRegex = /#([a-fA-F0-9]{3,6})/g;
const rgbRegex = /rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)/g;
const rgbaRegex = /rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*\d*\.?\d+\s*\)/g;
@ArturJS
ArturJS / GIT_BISECT.md
Last active September 24, 2025 14:10
How to use git bisect

Git Bisect - Простая инструкция

git bisect - это мощный инструмент, который помогает найти точный коммит, где была введена ошибка, используя бинарный поиск.

Шаги по использованию git bisect:

  1. Запустите процесс bisect:
    git bisect start