Skip to content

Instantly share code, notes, and snippets.

View mrLexx's full-sized avatar

Valery mrLexx

  • Japancar.ru
  • Russia, Moscow
  • 21:57 (UTC +03:00)
View GitHub Profile
@mrLexx
mrLexx / algocode-layout-switcher.user.js
Last active November 8, 2026 12:17
AlgoCode: Layout Switcher
// ==UserScript==
// @name AlgoCode — Layout Switcher
// @namespace https://github.com/mrLexx/
// @version 2.2.0
// @description Переключение Grid / Pinterest / Original
// @author mrLexx
// @match https://algocode.io/*
// @icon https://cdn.jsdelivr.net/gh/mrLexx/assets@main/icons/favicon/favicon-32x32.png
// @run-at document-idle
// @updateURL https://gist.github.com/mrLexx/6d9556232f938d40427f160a7ea81978/raw/algocode-layout-switcher.user.js
@mrLexx
mrLexx / habr-remove-sourcecraft-explainer.user.js
Last active August 29, 2026 12:31
Habr: remove Sourcecraft explainer
// ==UserScript==
// @name Habr: remove Sourcecraft explainer
// @namespace https://github.com/mrLexx/
// @version 0.1.1
// @description Удаляет блоки code-explainer со ссылкой на sourcecraft.dev на habr.com
// @author mrLexx
// @match *://habr.com/*
// @icon https://cdn.jsdelivr.net/gh/mrLexx/assets@main/icons/favicon/favicon-32x32.png
// @grant none
// @run-at document-idle
@mrLexx
mrLexx / golang-guide-image-fix.user.js
Last active August 29, 2026 12:32
Tampermonkey sacript for image fix on golang.guide
// ==UserScript==
// @name golang.guide: Image fix
// @namespace https://github.com/mrLexx/
// @version 0.1.5
// @description Removes the dim/hover overlay effect on images so they display at full brightness immediately
// @author mrLexx
// @match https://golang.guide/*
// @icon https://cdn.jsdelivr.net/gh/mrLexx/assets@main/icons/favicon/favicon-32x32.png
// @grant none
// @updateURL https://gist.github.com/mrLexx/372e15772009fdfa1c6eb5f8eff2dd50/raw/golang-guide-image-fix.user.js

※ Raspberry Pi RAID NAS Server Setup ※

Hardware:

  • Raspberry Pi 4 (4GB RAM)
  • Micro SD card 32GB
  • 2x Integral USB 3.1 flash drives 128GB

OS:

  • Raspbian Buster
@mrLexx
mrLexx / noinspection.php
Last active December 23, 2024 13:19 — forked from gskema/noinspection.php
PhpStorm @noinspection list of all tags
<?php
// https://www.jetbrains.com/help/inspectopedia/PHP.html
/** @noinspection ? */
// PhpObjectFieldsAreOnlyWrittenInspection Local object is used only for writing properties
// PhpUndefinedGotoLabelInspection Undefined goto label
// PhpUndefinedVariableInspection Undefined variable
// PhpUndefinedMethodInspection Undefined method
@mrLexx
mrLexx / phpstorm_evaluation_license_reset.md
Created April 25, 2024 08:13
PhpStorm reset evaluation license/period

PhpStorm reset evaluation license/period

Make sure to export/import your settings through File -> Manage IDE settings before/after

Windows 10

  1. Close PHPStorm
  2. Run these in PowerShell to remove PhpStorm configuration:
Remove-Item '.\AppData\Local\Jetbrains\PhpStorm*'
Remove-Item '.\AppData\Roaming\Jetbrains\PhpStorm*'
@mrLexx
mrLexx / memory_info.sh
Created January 24, 2024 09:05
show memory nfo
lshw -short -C memory
@mrLexx
mrLexx / git-reset-author.sh
Created August 13, 2023 18:36 — forked from bgromov/git-reset-author.sh
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php80\Rector\Class_\StringableForToStringRector;
@mrLexx
mrLexx / rearct-native-app-in-wsl2.md
Created April 20, 2022 07:29 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2