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.
««
«
2
3
4
5
6
»
»»
Github 推送代码失败
Jun 10, 2023
One minute read
周末在家写点代码,写完死活推不上去 kex_exchange_identification: Connection closed by remote host Connection closed by 198.18.0.16 port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 我以为是我挂了代理,github可能怀疑恶意用户不让我推代码。。。 实际是祖国更墙大了 Host github.com Hostname ssh.github.com Port 443 User git 把上面代码加入到~/.ssh/config就好了......
blog
github
git
Php 生成 Aws Pregisn Request
May 4, 2023
2 minutes read
项目使用laravel开发,用bref部署到aws的lambda上,有一个上传文件的接口,由于lambda限制请求和响应大小为6mb,导致上传大于6mb的文件失败 这时候可以使用s3的presign post让前端直接上传到s3,presign post比presign url多了一个policy功能,你可以限制上传的文件大小,位置 $client = new S3Client([ 'version' => 'latest', 'region' => config('filesystems.disks.s3.region'), ]); $bucket = config('filesystems.disks.s3.bucket'); $temp_path = 'uploads/temp/images'; $options = [ ['bucket' => $bucket], ['content-length-range' ,0, 20000000], //这里限制上传文件大......
blog
aws
php
s3
lambda
Ant Design Pro umijs 使用 Remixicon
Mar 26, 2023
One minute read
开了个新项目,使用了 umijs,然后发现了一个好东西,就是 Remixicon,这个图标库,我觉得比 Ant Design 的图标库要好 copilot有点离谱了啊,上面那句话刚说完 「开了个新项目」,一按tab自动给我补全了,好家伙 在ant desgin/ant design pro/umijs项目中使用的话 yarn add remixicon 然后在src/global.less中 @import "~remixicon/fonts/remixicon.css"; 就好了......
blog
react
antd
remixicon