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 | |
// Copy this code into your phar project and execute it, it will split micro.sfx and code.phar!! | |
if ( | |
!function_exists('micro_get_sfx_filesize') | |
|| !function_exists('micro_get_self_filename') | |
|| !function_exists('micro_open_self') | |
) { | |
echo 'This part of code may not run in micro SAPI!' . PHP_EOL; | |
exit(1); |
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 | |
declare(strict_types=1); | |
namespace SPC\builder\unix\library; | |
use SPC\exception\FileSystemException; | |
use SPC\exception\RuntimeException; | |
use SPC\store\FileSystem; |
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
Homebrew build logs for imap-uw on macOS 13.5 | |
Build date: 2023-09-07 20:40:36 |
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 | |
declare(strict_types=1); | |
namespace SPC\command; | |
use SPC\doctor\CheckListHandler; | |
use SPC\exception\DownloaderException; | |
use SPC\exception\FileSystemException; | |
use SPC\exception\RuntimeException; |
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 | |
$phone = '13345454545'; | |
$a = md5($phone, true); | |
$bss = md5($phone); | |
use Swoole\Process; | |
$starttime = microtime(true); |
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 | |
declare(strict_types=1); | |
namespace ZMPlugin\OneBotWS; | |
use Choir\WebSocket\CloseFrameInterface; | |
use Choir\WebSocket\FrameInterface; | |
use Choir\WebSocket\Opcode; | |
use MessagePack\MessagePack; |
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 | |
namespace ZM\Plugin\Strategy; | |
use ZM\Utils\ZMRequest; | |
use ZM\Utils\ZMUtil; | |
class GitStrategy extends PluginInstallStrategy | |
{ | |
private string $git_api_link = 'https://api.github.com/repos/{owner}/{repo}/contents/composer.json'; |
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 | |
class ActionResponse implements \JsonSerializable, \IteratorAggregate | |
{ | |
public string $status = 'ok'; | |
public int $retcode = 0; | |
/** | |
* @var mixed | |
*/ |
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 | |
declare(strict_types=1); | |
namespace OneBot\V12\Object; | |
use OneBot\Util\Utils; | |
use OneBot\V12\Exception\OneBotException; | |
use OneBot\V12\Validator; |
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
# 注意,需要先安装 7-zip 到 Program Files 目录! | |
# 时间格式结尾 | |
$bak_time = Get-Date -Format 'yyyy-M-d' | |
# 临时存放导出位置的目录 | |
$backup_tmp_dir = "F:\export-vm" | |
# 保存压缩文件的目标目录,我这里使用了NAS的目录 | |
$backup_remote_dir = "\\10.10.10.5\虚拟机备份" |
NewerOlder