Skip to content

Instantly share code, notes, and snippets.

View proweb's full-sized avatar

Sergey Mochalov proweb

View GitHub Profile
@ollyollyollyltd
ollyollyollyltd / PHP-8.4-compatibility.patch
Last active December 19, 2025 07:49
Patch for `voku/portable-utf8` PHP 8.4 compatibility issues
From 48c36239a2792ebc999044ffab7935011a58009e Mon Sep 17 00:00:00 2001
From: Alan Hardman <alanaktion@gmail.com>
Date: Wed, 19 Feb 2025 16:34:13 -0700
Subject: [PATCH] PHP 8.4 compatibility
This updates all function definitions with explicitly nullable parameters. The implicit null behavior is deprecated in PHP 8.4.
I currently rely on your anti-xss package that depends on this, so hopefully this is an acceptable change.
---
src/voku/helper/UTF8.php | 72 ++++++++++++++++++++--------------------
@l1kus-freedom
l1kus-freedom / !instruction.txt
Last active January 11, 2026 22:32
Инструкция по обходу блокировок\на случай интернет-шатдауна в РФ.
Сохраните себе данную инструкцию (Download ZIP) и распространите.
В РФ постепенно усиляется цензура и блокируются различные интернет-ресурсы. Нельзя исключать тот факт, что в один момент могут войти в постоянную практику локальные шатдауны и ограничению доступа во внешний Интернет.
В этой инструкции будут рекомендации по обходу блокировок на момент 05.09.2025, а также рекомендации на случай интернет-изоляции в РФ. Желательно предварительно установить и настроить весь софт — во время шатдауна у вас не будет такой возможности.
Для начала, рекомендую установить на ПК браузер Firefox или любой другой браузер с интерфейсом настройки прокси.
========================================================================================================================================
ОБХОД БЛОКИРОВОК
* Обход блокировок по DPI (Windows)
github.com/ValdikSS/GoodbyeDPI - не обновляется, плохо обходит блокировки без настройки, однако, может работать в некоторых случаях;
github.com/bol-van/zapret-win-bundle - оригинальный гит
@imliam
imliam / filament-default-icons.php
Last active October 8, 2025 09:20
Mapping the icon aliases to their default values in Filament 4
<?php
use Filament\View\PanelsIconAlias;
use Filament\Support\Icons\Heroicon;
use Filament\Forms\View\FormsIconAlias;
use Filament\Tables\View\TablesIconAlias;
use Filament\Support\Facades\FilamentIcon;
use Filament\Schemas\View\SchemaIconAlias;
use Filament\Actions\View\ActionsIconAlias;
use Filament\Support\View\SupportIconAlias;
@sergeytolkachyov
sergeytolkachyov / export_articles.php
Created April 25, 2025 05:44
Export articles from Joomla 3 to Joomla 5 via REST API. Joomla 3 CLI script.
<?php
/**
* @package Joomla.Cli
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* This is a CRON script which should be called from the command-line, not the
@proweb
proweb / README.md
Last active January 10, 2026 15:54
Censor Traker List
@MrPunyapal
MrPunyapal / 1 Types.md
Last active November 28, 2025 20:31
Types In PHP

Atomic Types (Built-in and Scalar)

// Built-in types
$variable = null;             // null type

// Scalar types
$boolVar = true;              // bool type
$intVar = 42;                 // int type
$floatVar = 3.14;             // float type
@SerafimArts
SerafimArts / backslash.php
Last active September 15, 2025 13:50
Why do you need to put a backslash before PHP functions?
<?php
namespace Example;
$a = 23;
\is_null($a);
@stenuto
stenuto / convert.sh
Created May 29, 2024 03:45
Convert video file into HLS playlist with multiple resolutions and bitrates
#!/bin/bash
# This script takes a video file as input and converts it into an HLS (HTTP Live Streaming) playlist with multiple resolutions and bitrates. It also generates a thumbnail image from the video.
# Check if an input filename is provided
if [ -z "$1" ]; then
echo "Usage: $0 input_filename (without extension) [-t]"
exit 1
fi
@justintadlock
justintadlock / pattern-query-grid-cover-stack.html
Created December 21, 2023 14:09
Query Loop pattern with stretched Stack block nested in Cover
<!-- wp:query {"queryId":0,"query":{"perPage":"7","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[]},"align":"full","className":"pattern-post-grid-cover","layout":{"type":"constrained"}} -->
<div class="wp-block-query alignfull pattern-post-grid-cover"><!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|plus-3","left":"var:preset|spacing|plus-3","top":"var(\u002d\u002dtheme-spacing\u002d\u002dplus-3)","bottom":"var(\u002d\u002dtheme-spacing\u002d\u002dplus-3)"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group alignfull" style="padding-top:var(--theme-spacing--plus-3);padding-right:var(--wp--preset--spacing--plus-3);padding-bottom:var(--theme-spacing--plus-3);padding-left:var(--wp--preset--spacing--plus-3)"><!-- wp:post-template {"align":"full","style":{"spacing":{"blockGap":"var:preset|spacing|minus-3"}},"className":"is-style-no-gap is-style-flex-grow is-style-fe
@bobmonsour
bobmonsour / getDescription.js
Created April 13, 2023 04:45
An Eleventy filter that extracts the meta description from within the <head> element of a web page
// getDescription - given a url, this Eleventy filter extracts the meta
// description from within the <head> element of a web page using the cheerio
// library.
//
// The full html content of the page is fetched using the eleventy-fetch plugin.
// If you have a lot of links from which you want to extract descriptions, the
// initial build time will be slow. However, the plugin will cache the content
// for a duration of your choosing (in this example, it's set to 1 day).
//
// The description is extracted from the <meta> element with the name attribute