摘要: 本指南将介绍如何不借用archinstall脚本来安装纯命令行界面的ArchLinux到64位系统上。(UEFI+GPT) 零、安装前准备 首先当然是先进入liveiso环境。 增大字号: setfont ter-132n 测试网络连接是否顺畅: ping archlinux.org -c 5 验证 阅读全文
posted @ 2024-09-12 18:06 lightmon 阅读(137) 评论(0) 推荐(0) 编辑
摘要: sudo pacman-key --refresh-keys # enable ntp and ensure the time correct timedatectl set-ntp 1 timedatectl status rm -fr /etc/pacman.d/gnupg # create p 阅读全文
posted @ 2024-09-04 23:21 lightmon 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass 阅读全文
posted @ 2024-07-28 22:24 lightmon 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 目的 把当前文件夹下的这些文件 重命名为 代码 Get-ChildItem -Path . -Filter "*.mkv" | ForEach-Object { if ($_.Name -ne "rename") { fileName=_.Name -replace "\.[^.]+$", 阅读全文
posted @ 2024-07-18 22:46 lightmon 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 解决方案来自https://gist.github.com/plembo/f0767e4fbcd42c6c98f8271c15ee785d?ref=techhut.tv 首先确保宿主机开启了3d加速,并且客户机安装了vmware tools。 编辑~/.vmware/preferences 在最后加 阅读全文
posted @ 2024-07-02 18:39 lightmon 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 把/usr/share/applications中的.desktop文件复制到~/.local/share/applications中修改[Exec]栏的参数即可。 阅读全文
posted @ 2024-06-18 13:19 lightmon 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 文件拆分脚本 每隔两行拆分成一个新文件。 import os with open('Main.java', 'r', encoding='UTF-8') as file: file_content = file.read() file_parts = file_content.split('\n\n 阅读全文
posted @ 2024-06-17 21:42 lightmon 阅读(14) 评论(0) 推荐(0) 编辑
摘要: A. SSeeeeiinngg DDoouubbllee 直接将原字符串翻转一下拼到原字符串的后面就构成了回文串。 string s; void solve() { cin >> s; cout << s; reverse(s.begin(), s.end()); cout << s << '\n' 阅读全文
posted @ 2024-06-15 15:54 lightmon 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 对拍器代码 #include <fstream> void solve() { ifstream input1; // 你的代码运行的输出 input1.open("../output.txt"); ifstream input2; // 正确的代码的输出 input2.open("../compa 阅读全文
posted @ 2024-06-13 20:29 lightmon 阅读(5) 评论(0) 推荐(0) 编辑
摘要: A. Hossam and Combinatorics |aiaj|最大的就是最大值和最小值,注意要开long long。 int n; int a[N]; void solve() { cin >> n; int min_v = INF, max_v = 0; for (int 阅读全文
posted @ 2024-06-10 14:26 lightmon 阅读(7) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示