replace ^.*XXX.*$\n
with empty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
开启WSL2后WMware无法启用vt-x | |
原因: | |
Only one software component can use this hardware at a time | |
参考: | |
https://learn.microsoft.com/en-us/troubleshoot/windows-client/application-management/virtualization-apps-not-work-with-hyper-v | |
解决: | |
bcdedit /set hypervisorlaunchtype off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* BeanHelper | |
* | |
* @author yanganyu | |
*/ | |
@UtilityClass | |
public class BeanHelper { | |
public static <S, T> T copy(BeanCopier beanCopier, S source, Supplier<T> targetConstructor) { | |
T target = targetConstructor.get(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('*').forEach(e => e.style.userSelect = 'text'); |
在Windows系统中,你可以使用 netstat
命令和 findstr
命令来查找哪个进程正在使用特定的端口。以下是如何查找哪个进程正在使用3306端口:
打开命令提示符(cmd),然后输入以下命令:
netstat -ano | findstr 3306
这将显示使用3306端口的所有连接,以及这些连接的进程ID(PID)。输出将类似于以下内容:
参考https://github.com/orgs/community/discussions/29127
设置代理后,必须重启IDEA才能生效
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
void t3() { | |
Supplier<Long> s = Suppliers.memoize(this::tt); | |
System.out.println("---------1"); | |
System.out.println(s.get()); | |
System.out.println("---------2"); | |
System.out.println(s.get()); | |
System.out.println("---------3"); | |
System.out.println(s.get()); | |
System.out.println("---------4"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lists.newArrayList(Iterables.concat(list1, list2)); |
- 每天定时执行一个签到脚本
- 每当电脑从睡眠中唤醒时执行一个脚本
NewerOlder