This file contains hidden or 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
| # 设置 CMake 最小版本要求 | |
| cmake_minimum_required(VERSION 3.0) | |
| # 设置项目名称 | |
| project(PhpyStand) | |
| # 设置包含目录 | |
| include_directories( | |
| "D:/phpy/php-8.1.27-src/x64/Release/php-8.1.27-devel-vs16-x64/include/main" | |
| "D:/phpy/php-8.1.27-src/x64/Release/php-8.1.27-devel-vs16-x64/include" |
This file contains hidden or 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 | |
| // 定义 FFI 和必要的常量 | |
| define('USER32', 'user32.dll'); | |
| define('GDI32', 'gdi32.dll'); | |
| // @link https://learn.microsoft.com/en-us/windows/win32/api/windef/ns-windef-point | |
| // @link https://learn.microsoft.com/en-us/windows/win32/api/windef/ns-windef-rect | |
| // @link https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdesktopwindow | |
| // @link https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getcursorpos |
This file contains hidden or 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
| /** | |
| * http request | |
| * from swoole/ide-helper | |
| * @param string $url | |
| * @param string $method | |
| * @param mixed $data | |
| * @param array $options | |
| * @param null|array $headers | |
| * @param null|array $cookies | |
| * @return array |
This file contains hidden or 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 DontDie; | |
| use InvalidArgumentException; | |
| use RuntimeException; | |
| use Swoole\Process; | |
| use Swoole\Coroutine; |
This file contains hidden or 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
| import CryptoJS from 'crypto-js' | |
| /** | |
| * Class that exposes two public methods: Encrypt and Decrypt | |
| * This is used by the KeyringController to encrypt / decrypt the state | |
| * which contains sensitive seed words and addresses | |
| */ | |
| class Encryptor { | |
| _generateSalt(byteCount = 32) { |
This file contains hidden or 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 | |
| /** | |
| * 判断是否合法车牌号 | |
| * | |
| * @param string $license | |
| * @return boolean | |
| */ | |
| function is_car_license($license) | |
| { | |
| if (empty($license)) { |
This file contains hidden or 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 org; | |
| use think\facade\Config; | |
| /** | |
| * Class InviteCode |
This file contains hidden or 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 org; | |
| /** | |
| * 获取唯一编号 | |
| */ | |
| class SequenceNumber | |
| { | |
| public static $_fmt = ''; |
This file contains hidden or 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
| # https://www.viafitness.com/files/viafit_time_zones.pdf | |
| env TZ='Asia/Shanghai' node |
This file contains hidden or 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
| # /etc/systemd/system/lotus-worker-c2.service | |
| [Unit] | |
| Description=Lotus C2 Worker Service | |
| After=network.target | |
| [Service] | |
| User=lotus # or any other user | |
| ExecStart=/usr/local/bin/lotus-worker run --no-local-storage --addpiece=false --precommit1=false --unseal=false --precommit2=false --commit=true --parallel-fetch-limit 10 --listen 192.168.88.105:3458 | |
| Restart=always | |
| RestartSec=10 |
NewerOlder