Paramita
Home
Blog
Moment
Snippet
About
代码笔记
Categories
Blog (42)
Featured Tags
alpinejs (2)
ant-design (5)
antd (1)
aspose (1)
aws (1)
cloudflare (1)
dva (2)
echo (2)
filamentphp (1)
gin (1)
git (1)
github (2)
go-mecab (1)
golang (15)
goquery (1)
grpc (1)
japanese (1)
java (1)
lambda (1)
laravel (8)
leetcode (5)
less (1)
linux (3)
livewirejs (1)
mac (1)
mysql (2)
nestjs (1)
nginx (1)
nodejs (1)
npm (1)
php (5)
popclip (1)
ppt (1)
r2 (1)
react (3)
reactjs (9)
remixicon (1)
s3 (1)
shell (2)
tailwindcss (2)
taro (3)
tarojs (1)
telescope (2)
typeorm (1)
umi (1)
umijs (3)
workers (1)
zustand (2)
免签 (1)
小程序 (4)
支付宝 (1)
Blog
42 posts
Blog
is the place to record my codinglife.
««
«
8
9
10
11
12
»
»»
ssh端口转发
Oct 6, 2022
2 minutes read
ssh端口转发 本地端口转发 将发送到本机某个端口的请求转发给远程ssh服务器的某个端口 ssh -L [LOCAL_IP:]LOCAL_PORT:DESTINATION:DESTINATION_PORT [USER@]SSH_SERVER 比如服务器elk的kibana服务,mysql服务,Druid,nacos的管理端,rancher的管理端这些肯定是不能暴露给公网访问的 ssh -L -N 15601:127.0.0.1:5601 root@remoteip 这条命令会将发送到本机15601端口的请求转发到服务器的5601端口,在本机打开浏览器访问http://localhost:15601/即可访问服务器上部署的ki......
blog
linux
shell
Laravel Job添加telescope Tags
Oct 1, 2022
One minute read
请求添加tag laravel开了telescope,请求添加tag还好说 //直接在TelescopeServiceProvider的register方法判断就好了 Telescope::tag(function (IncomingEntry $entry) { if ($entry->isRequest()){ $tags = []; $tags[] = preg_replace('/(\d+)\.(\d+)\.(\d+)\.(\d+)/', '$1.$2.*.*', request()->getClientIp()); $tags[] = preg_replace('/(\d+)\.(\d+)\.(\d+)\.(\d+)/', '$1.$2.$3.*', request()->getClientIp()); $tags[] = $t; if (! request()->header('referer') ) { $tags[] = 'noreferer'; } return $tags; } }); job添加tag 想给job添加tag,而且需要根据job的数据添加tag,直接在job方法中新增一个tags方法即可 <?php namespace App\Jobs; class XXJob implements ShouldQueue, ShouldBeUnique { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; public $id; public function __construct($id) { $this->id = $id; } public function......
blog
laravel
telescope
小程序加密网络通道,小程序aes加密
Sep 29, 2022
3 minutes read
为了防止小程序的接口被盗用,用了小程序的加密网络通道,前端使用cryptojs加密,报错Native crypto module could not be used to get secure random number. 结论 修改package.json,版本降级,"crypto-js": "3.1.9-1", 或者改成使用https://github.com/ricmoo/aes-js 原因 刚开始用的官方文档推荐的https://github.com/ricmoo/aes-js ,结果aes-cbc......
blog
reactjs
tarojs
小程序