BestXTools
好工具周刊(第 16 期): JSON Hero, ASCII Art Paint, Puzzle maker, 今天我们来做菜, Tweetlet, ...
发现并分享有趣,有创意,免费、好用的工具,每周四发布。由 BestXTools 创作。
上一期内容 | 往期内容 | RSS 订阅 | 邮箱订阅 | 微信订阅 | 工具推荐 | 评论
🌈 在线工具
JSON Hero
一款超级强大的 JSON 可视化工具。支持多种视图模式、搜索功能、多种数据类型的预览(日期、图片、颜色、链接等)。
链接: https://jsonhero.io/
源码: https://github.com/jsonhero-io/jsonhero-web
ASCII Art Paint
一款在线 ASCII 艺术图像编辑器。
链接: https://kirilllive.github.io/tuesday-js/tools/ascii_paint.html
备用链接…
busylog
AllowedIPs calculator for split tunnel and firewall rules
https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/
example ranges to be excluded:
0.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16, 240.0.0.0/3
OpenBSD version. use with pfctl -ef FILENAME.
you may wish to block all connection without port < 1023 rule.
table <ip_range> { 1.0.0.0/8, 2.0.0.0/7, 4.0.0.0/6, 8.0.0.0/7, 11…
BestXTools
好工具周刊(第 17 期): Git History, Arya, DiceBear Avatars, GitHub Card, Griddy, ...
发现并分享有趣,有创意,免费、好用的工具,每周四发布。由 BestXTools 创作。
上一期内容 | 往期内容 | RSS 订阅 | 邮箱订阅 | 微信订阅 | 工具推荐 | 评论
🌈 在线工具
Git History
一款在线查看文件修改的历史记录的工具。同时支持浏览器插件,VSCode 插件,命令行工具,体验非常不错。
链接: https://githistory.xyz/
源码: https://github.com/pomber/git-history
Arya - 在线 Markdown 编辑器
一款基于 Vue、Vditor,所构建的在线 Markdown 编辑器,支持绘制流程图、甘特图、时序图、任务列表、echarts 图表、五线谱…
busylog
3proxy.cfg config example for ipv6 dual stack
# unused dns upstream
# nserver 2606:4700:4700::1001
nscache 65536
nscache6 65536
# windows
# service
# linux
# daemon
auth iponly
# target filter
deny * * 127.0.0.1,192.168.0.0/16,fe80::/64
# port filter, 80,443,5222-5228 only
deny * * * 1-79,81-442,444-5221,5229-65535 HTTP,HTTP_CONNECT
# source filter
allow * 192.168.1.0/24,fe80::/64
# dont ask passwd
deny *
# linux: -s0 to disable splice. -olSO_REUSEADDR,SO_REUSEPORT
# linux: listen on ipv6 may need -olIPV6_V6ONLY
proxy -p8886 -64 -a -ocTCP_NODELAY -osTCP_NODELAY -i0.0.0.0 -e0.0.0.0 -e::
proxy…
sai
fly.io的错误
遇到的问题
Step 26/47 : RUN --mount=type=cache,id=dev-apt-cache,sharing=locked,target=/var/cache/apt --mount=type=cache,id=dev-apt-lib,sharing=locked,target=/var/lib/apt apt-get update -qq && apt-get install --no-install-recommends -y ${DEV_PACKAGES} && rm -rf /var/lib/apt/lists /var/cache/apt/archives
DEBUG result image:<nil> error:error building: error rendering build status stream: the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled
Error failed to fetch an image or build from source: error…
小白
基础数据结构
1.使用数组存储不同类型的数据
let yourArray=["one","two",1,2,true]
2.使用方括号(索引)访问数组的元素
let myArray = ["a", "b", "c", "d"];
myArray[1]="b to e"
3.使用 push() 和 unshift() 为数组添加元素
push() 方法会将元素插入到数组的末尾,而 unshift() 方法会将元素插入到数组的开头。
4.使用 pop() 和 shift() 从数组中删除元素
与插入元素相反,pop() 会从数组的末尾移除一个元素,而 shift() 会从数组的开头移除一个元素。 pop…
busylog
powershell 7 (pwsh) as parallel runner
$process = Get-Process -Id $pid
$process.PriorityClass = 'idle'
get-item .\*.jpg | foreach-object -ThrottleLimit NUM_CORES -Parallel { cwebp.exe -metadata exif $_.FullName -o ("OUTPUTPATH" + $_.Name).replace('jpg','webp') }
# if ((Get-Item -Path $b).length -eq 0) { }
PowerShell 7 can be found on Microsoft Store:
https://apps.microsoft.com/store/detail/powershell/9MZ1SNWT0N5D
Get-ChildItem -recurse (-filter / -include), and $_.Fullname may be useful.
Note: disable windows defender, explorer thumbnail for higher performance (SystemPropertiesAdvanced).
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "IconsOnly" /t Reg_DWord /d 00000001 /f
reg add "HKCU\Software…
小白
基础算法章节中个别函数方法
1.JS split() 方法
split() 方法用于把一个字符串分割成字符串数组。
eg:把一个字符串分割成字符串数组:
var str="How are you doing today?";
var n=str.split(" ");
n 输出一个数组的值:
How,are,you,doing,today?
2.截取字符串
方法一:string.substring(from, to) 方法从 from 位置截取到 to 位置,to 可选,没有设置时默认到末尾。
方法二:substr() 方法可在字符串中截取从开始下标开始的指定数目的字符。
方法三:slice(start,end) 方法用于提取字符串的某个部分(从…
yuan
关于 MithrilJS 的 m.request()
m.request() 的 API 目前定义如下:
m.request({
method: ...,
url: ...,
body: ...
})
.then(function(result) {
// 2xx, 304 处理逻辑
})
.catch(functiuon(error) {
// 其余状态码处理逻辑
})
该 API 在响应状态码为 2xx 和 304 时,返回给前端程序员的是后端传过来的 JSON, 响应状态码本身以及响应头等其它信息都被丢掉了。所有其它状态码被当作请求失败,返回给前端程序员的是一个 Error 对象,其中包含响应体本身和响应状态码。
可能多数情况下这不是问题,但是如果前端在…