经常需要捣鼓东西,所以老是要import一个纯净Ubuntu系统,记录一些经常需要用到的初始化命令,懒得记或者上网查。 顺便分享两个自己做的Ubuntu系统(仅适用于WSL/WSL2) - 阅读剩余部分 -
- 阅读剩余部分 -
# 介绍 [imgproxy](https://github.com/imgproxy/imgproxy "imgproxy") 是一个快速且安全的独立服务器,用于调整远程图像的大小和转换。[imgproxy](https://github.com/imgproxy/imgproxy "imgproxy") 背后的指导原则是安全性、速度和简单性。 [imgproxy](https://github.com/imgproxy/imgproxy "imgproxy") 能够快速轻松地即时调整图像大小,并且它有能力处理大量的图像大小调整。[imgproxy](https://github.com/imgproxy/imgproxy "imgproxy") 是 Web 应用程序中所有图像大小调整代码(例如调整库大小或调用 ImageMagick 或 GraphicsMagic 的代码)的快速、安全的替代品。它也是处理来自远程源的图像的不可或缺的工具。使用 [imgproxy](https://github.com/imgproxy/imgproxy "imgproxy"),您无需在每次更改设计时重复准备图像以适合您的设计。 而 [Veryfront](https://veryfront.com/docs/image-proxy "Veryfront") 则免费且无限制提供了 [imgproxy](https://github.com/imgproxy/imgproxy "imgproxy") 服务。 # 用法 要使用 Veryfront 提供的映像代理,您可以按照以下步骤操作: - 阅读剩余部分 -
# 修改前 ![微信截图_20240227152804.png](https://storage.liesauer.net/2024/02/4280820008.png) # 修改后 ![微信截图_20240227152841.png](https://storage.liesauer.net/2024/02/1780315910.png) # 核心代码 以下代码使用了自己的一个cURL请求封装库,[liesauer/simple-http-client](https://packagist.org/packages/liesauer/simple-http-client "liesauer/simple-http-client"),这里不过多介绍,原生cURL也是一样设置Header和cURL参数的。 - 阅读剩余部分 -
在实际的[NW.js](https://github.com/nwjs/nw.js "NW.js")程序开发中,我们可能在程序启动时做一些加载前逻辑,比如更新等等,那如何实现等待这些逻辑完成后才开始加载`index.html`呢? ## bootstrap.html 准备一个App启动页`bootstrap.html`- 阅读剩余部分 -
## 修改WSL默认登录用户 添加以下内容到`/etc/wsl.conf`中 ```ini [user] default=USERNAME ``` ## 修改WSL默认登录位置 添加以下内容到`~/.bashrc`中 ```bash cd ~ ``` - 阅读剩余部分 -
服务器推荐