$ docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* ?file=STORAGE:file.jpg | |
* or | |
* ?file=file.jpg | |
* | |
* @todo: separate logs for different buckets? | |
* @todo: testing | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// требует | |
// composer require karelwintersky/arris | |
use Arris\DB; | |
use Arris\Toolkit\SphinxToolkit; | |
require_once __DIR__ . '/vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Это код скриптов для статьи Бэкап - как много в этом звуке! (https://author.today/post/148535)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Script to create MySQL db + user | |
# | |
# @author Karel Wintersky <[email protected]> | |
# @version 0.2 | |
# mysql_config_editor set --login-path=proftpd --host=localhost --user=proftpd --password | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Script to create MySQL db + user | |
# | |
# @author Karel Wintersky <[email protected]> | |
# @version 0.2 | |
# mysql_config_editor set --login-path=proftpd --host=localhost --user=proftpd --password | |
NewerOlder