Skip to content

Instantly share code, notes, and snippets.

View KarelWintersky's full-sized avatar

Karel Wintersky KarelWintersky

View GitHub Profile
@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 = '';
@KarelWintersky
KarelWintersky / meta-tags.md
Created March 19, 2019 18:18 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@KarelWintersky
KarelWintersky / mysql_dbu_create.sh
Created October 9, 2018 00:33
Script to create MySQL db + user
#!/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