Skip to content

Instantly share code, notes, and snippets.

View KarelWintersky's full-sized avatar

Karel Wintersky KarelWintersky

View GitHub Profile
@KarelWintersky
KarelWintersky / CVE-2026-24061_test.sh
Created January 23, 2026 10:50
CVE-2026-24061 Test
#!/bin/bash
# Скрипт проверки уязвимости CVE-2026-24061 в GNU InetUtils telnetd
# Уязвимые версии: 1.9.3 - 2.7 (май 2015 - январь 2026)
# by Claude Code 4.5
RED='\033[0;31m'
YELLOW='\033[1;33m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
@KarelWintersky
KarelWintersky / mysql_dbu_create.sh
Last active January 17, 2026 18:20
MySQL -- create user & database + password (v2)
#!/usr/bin/env bash
#
# Script to create MySQL/MariaDB db + user
#
# @author Karel Wintersky <karel.wintersky@gmail.com>
# @version 1.0
# mysql_config_editor set --login-path=proftpd --host=localhost --user=proftpd --password
# version this: https://gist.github.com/KarelWintersky/72021fe214f9d2f6ddc6a28c732baac1
# version 0.2: https://gist.github.com/KarelWintersky/9cb12557873ebc59b5cb94cb37bb6913
@KarelWintersky
KarelWintersky / AdbCommands
Created August 10, 2023 05:49 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@KarelWintersky
KarelWintersky / download.php
Created April 14, 2023 10:02
Download proxy with logging
<?php
/**
* ?file=STORAGE:file.jpg
* or
* ?file=file.jpg
*
* @todo: separate logs for different buckets?
* @todo: testing
*/
@KarelWintersky
KarelWintersky / test.php
Created February 11, 2023 07:54
TopPopularKeywords3000000.csv insert to Manticore Test
<?php
// требует
// composer require karelwintersky/arris
use Arris\DB;
use Arris\Toolkit\SphinxToolkit;
require_once __DIR__ . '/vendor/autoload.php';
@KarelWintersky
KarelWintersky / logr.bash
Created April 16, 2022 23:59 — forked from ttscoff/logr.bash
Bash logging utility that simplifies use of logger command
#!/bin/bash
# Logging utility that simplifies user of bash logger command
# # First source the script
# source ~/scripts/logr.bash
# # Start the logger, generates log name from scripts filename
# logr start
# # or define your own
# logr start LOG_NAME
@KarelWintersky
KarelWintersky / docker-help.md
Created April 12, 2022 05:13 — forked from adrianorsouza/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@KarelWintersky
KarelWintersky / about.md
Last active March 7, 2021 21:29
Код скриптов к статье "Бэкап - как много в этом звуке!" (https://author.today/post/148535)
@KarelWintersky
KarelWintersky / mysql_dbu_create.sh
Created October 2, 2020 13:53
MySQL -- create user & database + password
#!/usr/bin/env bash
#
# Script to create MySQL db + user
#
# @author Karel Wintersky <karel.wintersky@gmail.com>
# @version 0.2
# mysql_config_editor set --login-path=proftpd --host=localhost --user=proftpd --password
/**
* Class DBPool
* DBCAlias is alias for karelwintersky/arris -> DB wrapper over PDO.
* equal to PDO-connection
*/
class DBPool {
private $pool_max_size = 0;
private $pool = [];
private $db_table = '';