随笔分类 -  小技巧

摘要:查看 CPU 信息: cat /proc/cpuinfo 查看 CPU 的型号: cat /proc/cpuinfo | grep "model name" | sort | uniq 查看 CPU 颗数: cat /proc/cpuinfo | grep "physical id" | sort 阅读全文
posted @ 2021-02-26 11:55 叶建成 阅读(155) 评论(0) 推荐(0)
摘要:参考: https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/ https://linux.cn/article-5627-1.html sync && sudo sh -c 'echo 3 > / 阅读全文
posted @ 2020-12-07 11:46 叶建成 阅读(491) 评论(0) 推荐(0)
摘要:Re-run all or part of a previous command. Syntax !! Run the last command again !foo Run the most recent command that starts with 'foo' (e.g. !ls) !foo 阅读全文
posted @ 2020-07-22 11:33 叶建成 阅读(371) 评论(0) 推荐(0)
摘要:终端临时代理(关闭终端失效,当前用户永久生效修改~/.bashrc,所有用户永久生效修改/etc/profile,修改之后运行source ~/.bashrc或者source /etc/profile) export http_proxy="127.0.0.1:1081" export https_ 阅读全文
posted @ 2020-03-14 15:10 叶建成 阅读(1480) 评论(0) 推荐(0)
摘要:参考: https://man.linuxde.net/rsync https://zhiqiang.org/coding/rsync-will-not-compare-file-content.html https://www.cnblogs.com/f-ck-need-u/p/7220009.h 阅读全文
posted @ 2020-02-22 21:43 叶建成 阅读(382) 评论(1) 推荐(0)
摘要:设置 jupyter notebook 可远程访问 配置如下: jupyter notebook --generate-config jupyter notebook password vim /home/jacen/.jupyter/jupyter_notebook_config.py 最后一步是 阅读全文
posted @ 2020-02-07 12:00 叶建成 阅读(415) 评论(0) 推荐(0)
摘要:1、查看需要挂载的磁盘 sudo fdisk -l 2、分区 sudo parted /dev/sdb (parted) mklabel gpt (parted) mkpart primary 0 -1 (parted) quit 3、格式化磁盘,设置文件系统,并挂载 sudo mkfs.ext4 阅读全文
posted @ 2020-02-06 17:47 叶建成 阅读(3229) 评论(0) 推荐(0)
摘要:题目:有n个句子,每个句子的长度都小于等于m,现在需要将相邻较短的句子拼接再一起,使得句子的数量最少,并且长度仍然不大于m,而且拼接完之后句子的长度的方差最小。求拼接方式。 解题(自己给自己出题,sent_comb3切分符合要求): 阅读全文
posted @ 2019-12-24 01:29 叶建成 阅读(490) 评论(0) 推荐(0)
摘要::let i=1000000|g/^/s//\=i.' '/|let i=i+1 阅读全文
posted @ 2019-12-18 16:48 叶建成 阅读(306) 评论(0) 推荐(0)
摘要:https://github.com/BYVoid/OpenCC https://pypi.python.org/pypi/opencc-python(https://bitbucket.org/victorlin/opencc_python/src/default/) https://github 阅读全文
posted @ 2019-12-12 00:38 叶建成 阅读(293) 评论(0) 推荐(0)
摘要:1. 设置一些常用的修改、查看、编辑externals的svn命令,直接在~/.bashrc中添加,之后source ~/.bashrc就可以了。 # some svn aliases alias svnset='svn propset svn:externals . -F' alias svnge 阅读全文
posted @ 2019-12-05 15:36 叶建成 阅读(440) 评论(0) 推荐(0)
摘要:Windows: https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-windows#0 Ubuntu: https://tutorials.ubuntu.com/tutorial/tutorial-create- 阅读全文
posted @ 2019-09-02 21:21 叶建成 阅读(212) 评论(0) 推荐(0)
摘要:conda换源: 旧换源设置: conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna. 阅读全文
posted @ 2019-08-31 18:21 叶建成 阅读(1649) 评论(0) 推荐(0)
摘要:1、禁用 nouveau 驱动 或者 追加内容为: 再执行: 介绍一下 update-initramfs : 2、关闭显示管理器 或者 3、单独安装驱动 (1) 用cuda安装驱动 (2) 下载驱动安装 下载路径:https://www.nvidia.com/Download/index.aspx? 阅读全文
posted @ 2019-08-28 21:48 叶建成 阅读(5725) 评论(0) 推荐(0)
摘要:因为用了tmux,不想调整窗格大小,只想输出命令结果的最后几行,所以就想出了这个方法。 watch、tail联合用法 或者 阅读全文
posted @ 2019-08-27 15:21 叶建成 阅读(504) 评论(0) 推荐(0)
摘要:对正则表达式感兴趣的可以玩一下RegexGolf:https://alf.nu/RegexGolf 从中可以学到三个新的技能: 1、正则表达式不匹配 如果你想匹配含有镜像子串的字符串,如abba、anallagmatic、bassarisk等等。 你可以写出正则表达式: 但是要是你不想匹配这些字符串 阅读全文
posted @ 2019-08-03 20:46 叶建成 阅读(395) 评论(0) 推荐(0)
摘要:BERT-Large, Uncased (Whole Word Masking): 24-layer, 1024-hidden, 16-heads, 340M parameters BERT-Large, Cased (Whole Word Masking): 24-layer, 1024-hidd 阅读全文
posted @ 2019-06-14 00:46 叶建成 阅读(6896) 评论(0) 推荐(2)
摘要:Ubuntu 18.04 美化 阅读全文
posted @ 2019-06-10 19:41 叶建成 阅读(236) 评论(0) 推荐(0)
摘要:来源:https://www.qqxiuzi.cn/zh/hanzi-unicode-bianma.php 参考:https://unicode-table.com/cn/ 阅读全文
posted @ 2019-05-07 14:42 叶建成 阅读(5979) 评论(0) 推荐(1)
摘要:添加用户username到sudo组: 阅读全文
posted @ 2019-04-16 17:45 叶建成 阅读(1539) 评论(0) 推荐(0)