什么样的svg前端可以改颜色

其实前端不是所有 SVG 都能改颜色,关键看 SVG 是怎么画的。

最推荐

使用 **currentColor**。

1
2
3
4
5
6
<svg viewBox="0 0 24 24">  
<path
fill="currentColor"
d="..."
/>
</svg>
阅读更多

Arch Linux + Windows 双系统启动配置

有2块硬盘分别安装了,Arch Linux和Windows。希望启动时可以选择进入的系统。BIOS顺序是先启动 Arch Linux 的盘,Arch Linux 的 GRUB 里可以选择进入 Windows。

所以要解决 Arch Linux 怎么启动识别另一块Windows盘:

使用os-prober来识别自动发现系统,写入 grub.cfg;GRUB 菜单多一个Windows Boot Manager

阅读更多

copy2DVD

Linux 服务器写入DVD的脚本

1
2
3
4
# 使用方法
copy2DVD.sh /path/to/source
# 新的DVD加参数1
copy2DVD.sh /path/to/source 1
阅读更多

Windows 初始化设置 2025

一些注意事项

  • 老旧主板有的不识别USB3.0的U盘,进 BIOS 打开 XHCI、关闭快速启动、打开传统 USB 兼容也不行。只能用2.0的U盘插2.0的口。
  • 方便的话可以把其他硬盘线拔了,只保留要装系统的盘,后面再插上去
  • 安装系统时可以在 shift+F10 打开 regedit 关闭bitlocker
  • !别在晚上装系统!

安装Windows系统时跳过联网验证[^1]创建本地账号

首先安装系统到联网那一步,按shift+F10打开cmd

执行以下命令跳过联网验证:

1
OOBE\BypassNRO

电脑会自动重启,重启回来就可以选“我没有Internet连接”,然后创建本地账号

Windows 环境比较干净的安装/使用软件的方法

  • 零安装网页应用
  • Portable应用、 msix/appx应用
  • 沙盒 (Sandbox)、虚拟机 (VM)、Docker容器化应用
  • 包管理器管理应用(winget)
  • 其他设备投屏使用(手机、NAS)

WinGet 常用操作[^2]

1
2
3
4
5
6
7
8
9
10
11
# 在线搜索一个软件
winget search VisualStudioCode

# 查看软件包信息
winget show ClashVergeRev.ClashVergeRev

# 列出本机安装的软件 | 过滤输出
winget list | Select-String "sync"

# 卸载软件
winget uninstall --id Logseq.Logseq

2025 Windows 软件推荐

目前已安装的软件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

# wsl2 docker
wsl.exe --update
wsl --install -d Ubuntu-22.04
winget install -e --id Docker.DockerDesktop

# 浏览器
winget install -e --id Google.Chrome

# IDE
winget install -e --id Microsoft.VisualStudioCode

# 笔记
winget install --id Logseq.Logseq

# Telegram
winget install --id Telegram.TelegramDesktop

# 文件同步
winget install --id Syncthing.Syncthing
winget install --id GermanCoding.SyncTrayzor

# 快速查看文件
winget install -e --id QL-Win.QuickLook

# 文件搜索
winget install -e --id voidtools.Everything

# 文件压缩
winget install -e --id 7zip.7zip

# 截图
winget install -e --id ShareX.ShareX

# Office全家桶
winget.exe install -e --id Microsoft.Office

# 启动器
winget install --id Flow-Launcher.Flow-Launcher

# IDM下载器
winget install Tonec.InternetDownloadManager

# 删除工具
winget install IObit.IObitUnlocker

其他推荐

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

# 梯子
winget install -e --id ClashVergeRev.ClashVergeRev

# 梯子
winget install -e --id chen08209.FlClash

# 状态栏网速 另外还有lite版
winget install -e --id zhongyang219.TrafficMonitor.Full

# Firefox
winget install -e --id Mozilla.Firefox

# 欧路词典
winget install -e --id Eudic.Eudic

# markdown 编辑器
winget install -e --id Obsidian.Obsidian
winget install -e --id appmakes.Typora

# Simplenote 没找到官方的
winget install -e --id Automattic.Simplenote

# 截图
winget install -e --id Snipaste.Snipaste

# Microsoft.PowerToys
# DBeaver.DBeaver
# Git.Git
# CoreyButler.NVMforWindows
# Postman.Postman

# BT下载器
# steam
# 桌面远程 rustdesk

执行脚本

1
2
powershell -Command "Set-ExecutionPolicy Unrestricted"  
powershell -ExecutionPolicy Bypass -File install.ps1

激活系统 / Office

powershell 激活信息 slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX slmgr /skms kms8.msguide.com slmgr /ato 上面不行换这个 slmgr /skms kms.digiboy.ir slmgr /ato 上面不行换这个 slmgr /skms kms.chinancce.com slmgr

1
irm https://get.activated.win | iex

参考

[^1]: Set up Windows 11 without internet - oobe\bypassnro

[^2]: Use WinGet to install and manage applications

[Windows 11] 大家的新系统是如何激活的?

WinGet 支持安装软件列表

Win 11/10 重装系统、保留数据、初始化 B 站

【官方双语】Windows,这么装才干净 - 2025版Windows11安装教程#linus谈科技

X-Y Problem

没有去问怎么解决问题X,而是去问解决方案Y应该怎么去实现和操作

对于X-Y Problem的意思如下:

1)有人想解决问题X
2)他觉得Y可能是解决X问题的方法
3)但是他不知道Y应该怎么做
4)于是他去问别人Y应该怎么做?

简而言之,没有去问怎么解决问题X,而是去问解决方案Y应该怎么去实现和操作。于是乎:

1)热心的人们帮助并告诉这个人Y应该怎么搞,但是大家都觉得Y这个方案有点怪异。
2)在经过大量地讨论和浪费了大量的时间后,热心的人终于明白了原始的问题X是怎么一回事。
3)于是大家都发现,Y根本就不是用来解决X的合适的方案。

X-Y Problem最大的严重的问题就是:在一个根本错误的方向上浪费他人大量的时间和精力

X-Y Problem

StackOverflow: What is XY Problem?

PerlMonks: XY ProblemÏ

Greg’s Wiki

my_skills_just_went_up_1000x

我90%的技能价值归零,而10%的技能价值涨了1000倍

So you can think really big thoughts and the leverage of having those big thoughts has just suddenly expanded enormously. I had this tweet two years ago where I said “90% of my skills just went to zero dollars and 10% of my skills just went up 1000x”. And this is exactly what I’m talking about - having a vision, being able to set milestones towards that vision, keeping track of a design to maintain or control the levels of complexity as you go forward. Those are hugely leveraged skills now compared to knowing where to put the ampersands and the stars and the brackets in Rust.

— Kent Beck, interview with Gergely Orosz

https://simonwillison.net/2025/Jun/22/kent-beck/#

小丑牌种子收集

小丑牌种子收集

个人通关思路 前期至少拿一个经济牌 经济上来后叠倍率牌、最好是成长倍率、升级牌组 后期保证牌组纯洁性

阅读更多

修改console.log前面加上时间戳

1
2
3
4
5
6
7
8
9
10
(function(){
const oldLog = console.log;
console.log = function(...arr){
arr.unshift((new Date()).toISOString())
oldLog.apply(console, arr);
}
})()

console.log(1.1,'2', null, {a:33})
// 2025-10-22T06:33:45.853Z 1.1 2 null {a: 33}