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
// Define main function (script entry) | |
// 规则 | |
const prependRules = [ | |
'DOMAIN-SUFFIX,test,DIRECT,no-resolve', | |
'DOMAIN-SUFFIX,local,DIRECT,no-resolve', | |
'DOMAIN,cn.download.nvidia.com,DIRECT', | |
'DOMAIN,docker.1panel.live,DIRECT', | |
'DOMAIN-SUFFIX,dockerhub.icu,DIRECT', | |
'DOMAIN-SUFFIX,cursor.sh,[R]Cursor', // DIRECT |
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
async function scanDupes() { | |
let dupes = {}; | |
for (const nod of treeView.treeModel.currentSession_rootNode.subnodes) { // only check root level nodes, don't do complex recursive checks for "sub-roots" | |
const strbld = []; | |
nodeterate(nod, strbld); | |
const crashDetectedDate = nod.chromeWindowObj.crashDetectedDate | |
? new Date(nod.chromeWindowObj.crashDetectedDate).toLocaleString() | |
: 'not crash'; | |
console.log(nod.id, crashDetectedDate, nod); |
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 PHPSTORM_META { | |
override(\Imi\App::getBean(0), map([ | |
'' => '@', | |
'FileCache' => Imi\Cache\Handler\File::class, | |
'RedisCache' => Imi\Cache\Handler\Redis::class, | |
'RedisHashCache' => Imi\Cache\Handler\RedisHash::class, | |
'DefaultRuntimeModeHandler' => Imi\Core\Runtime\Handler\DefaultRuntimeModeHandler::class, | |
'CronCalculator' => Imi\Cron\CronCalculator::class, |
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
- java.net.BindException: Address already in use: bind | |
https://youtrack.jetbrains.com/issue/IDEA-238995 | |
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360009005139/comments/360002524640 | |
``` | |
net stop winnat | |
net start winnat | |
``` |
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
\/\*\* | |
\* Created by \S+?\. | |
\* User: \S+? | |
\* Date: \S+? | |
\* Time: \S+? | |
\*\/\s |
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 | |
# composer require nhzex/zsw-core | |
use Swoole\Runtime; | |
use unzxin\zswCore\Process\BaseSubProcess; | |
use unzxin\zswCore\ProcessPool; | |
use function HuangZx\ref_get_prop; | |
require_once __DIR__ . '/../vendor/autoload.php'; |
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
$ composer require nhzex/tp-swoole @dev -vvv --ignore-platform-reqs | |
```josn | |
"repositories": { | |
"local-package": { | |
"type": "path", | |
"url": "../package/" | |
}, | |
} | |
``` |
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 | |
use Exception; | |
use Swoole\Client; | |
use Swoole\WebSocket\Server; | |
// https://github.com/swoole/swoole-src/blob/master/examples/websocket/WebSocketClient.php | |
class WebSocketClient | |
{ | |
const VERSION = '0.1.4'; |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Auoor | |
* Date: 2019/3/14 | |
* Time: 20:41 | |
*/ | |
declare(strict_types=1); | |
namespace SnowFlake; |
NewerOlder