Loading

上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 76 下一页
摘要: 需求 使用sed对ubuntu apt source快速换源,希望同时兼容两种地址 deb http://archive.ubuntu.com/ubuntu/ bionic main restricted deb http://cn.archive.ubuntu.com/ubuntu/ bionic 阅读全文
posted @ 2022-01-22 14:25 azureology 阅读(387) 评论(0) 推荐(0)
摘要: 需求 安装时分配了过量的swap分区,需要减小容量。 实现 删除原有swap 使用sudo swapoff -a关闭swap后删除swap分区 使用gparted将swap分区未分配空间并入/分区 新增调整swap sudo fallocate -l 2G /swapfile sudo chmod 阅读全文
posted @ 2022-01-21 14:28 azureology 阅读(194) 评论(0) 推荐(0)
摘要: 需求 代码需要使用给定值初始化vector 实现 使用vector::resize(size_type n, const value_type& val)进行初始化。 std::vector<Class*> container; container.resize(10, nullptr); 当n大于 阅读全文
posted @ 2022-01-21 14:21 azureology 阅读(212) 评论(0) 推荐(0)
摘要: 需求 希望通过命令安装拼音输入法,方便写成脚本调用。 实现 需要重启生效 sudo apt install -y ibus-libpinyin gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('ibus' 阅读全文
posted @ 2022-01-21 11:38 azureology 阅读(150) 评论(0) 推荐(0)
摘要: 问题 下载zip文件使用unzip解压中文出现乱码 解决 增加GBK编码参数 unzip -O GBK archive.zip 阅读全文
posted @ 2022-01-21 11:29 azureology 阅读(70) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 76 下一页