电脑

  • Ctrl+Shift+V 即可做到无格式粘贴
  • 浏览器中,Ctrl+i就可以跳到第i个浏览器

清理c盘

  • 关闭休眠,可以少几个G
  • qq移动文件夹:聊天记录+文件储存

conda清理

参考:Conda的清理(一下少了14G)_Pin_BOY的博客-CSDN博客

  1. 打开anaconda所在文件夹,du -sh * 查看占多大存储空间

  2. 删除pkgs:rm -r pkgs

  3. 重新建目录: mkdir pkgs

  4. conda clean -p 删除从不使用的包(packages. Remove unused packages from writable package caches. WARNING: This does not check for packages
    installed using symlinks back to the package cache.1)

  5. conda clean -a 清除conda 里多余的包(all. Remove index cache, lock files, unused cache packages, and tarballs.)

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
$ conda clean -H
usage: conda clean [-h] [-a] [-i] [-l] [-p] [-t] [-f]
[-c TEMPFILES [TEMPFILES ...]] [-d] [--json] [-q] [-v] [-y]

Remove unused packages and caches.

Options:

optional arguments:
-h, --help Show this help message and exit.

Removal Targets:
-a, --all Remove index cache, lock files, unused cache packages,
and tarballs.
-i, --index-cache Remove index cache.
-l, --lock Remove all conda lock files.
-p, --packages Remove unused packages from writable package caches.
WARNING: This does not check for packages installed
using symlinks back to the package cache.
-t, --tarballs Remove cached package tarballs.
-f, --force-pkgs-dirs
Remove *all* writable package caches. This option is
not included with the --all flag. WARNING: This will
break environments with packages installed using
symlinks back to the package cache.
-c TEMPFILES [TEMPFILES ...], --tempfiles TEMPFILES [TEMPFILES ...]
Remove temporary files that could not be deleted
earlier due to being in-use. Argument is path(s) to
prefix(es) where files should be found and removed.

Output, Prompt, and Flow Control Options:
-d, --dry-run Only display what would have been done.
--json Report all output as json. Suitable for using conda
programmatically.
-q, --quiet Do not display progress bar.
-v, --verbose Can be used multiple times. Once for INFO, twice for
DEBUG, three times for TRACE.
-y, --yes Do not ask for confirmation.

Examples:

conda clean --tarballs
  1. conda env list 显示当前所有环境
  2. conda remove –name env_name -all 删除环境

文件管理器

OneCommander One Commander File Manager for Windows 11 and Windows 10

  • it just closes the window so that you can re-open it quickly when you need it, for example by pressing Win+Alt+O. You can shut it down by clicking Ctrl+WindowClose
  • 快捷键 Shortcut Keys (onecommander.com)

保存网页pdf格式乱

Fireshot插件

git

  • 远程版本回退git push -f origin master
    git

commit之后push之前发现又改了内容——
此时如果想撤销commit,同时保留git add
git reset –soft HEAD^
不删除工作空间改动代码,撤销commit,并且撤销git add(常用)
git reset –mixed HEAD^ 或者git reset HEAD^

markdown

MarkDown超级教程 Obsidian版_11.4_阿幸软件杂货间的博客-CSDN博客_obsidian调整行高

链接: 显示文本内容

引用 的格式
> + 文本内容 (不需要空格)
代码 输入两个反撇

生成任务列表

  1. 横框+ 空格+方括号(方括号中必须有空格或者x) + 空格+ 文本
  2. 可以在obsidian中设置快捷键 在列表和任务列表转换

要将单词或短语表示为代码,请将其包裹在反引号 ( `) 中

bat

BAT批处理基本命令总结 - 知乎 (zhihu.com)

latex

博客使用 LaTeX 的两种方法 | Rex’s blog (wzhecnu.cn)

  • argmax——效果: {$Group_i=\mathop{\mathrm{argmax}}\limits_{j\in \mathcal{N}}{Acc_{i,j})}$}

\STATE {$Group_i=\mathop{\mathrm{argmax}}\limits_{j\in \mathcal{N}}{Acc_{i,j})}$}

npm

通俗易懂的 Npm 入门教程_w3cschool

  • 全局安装安装一次重复使用,本地安装使用什么安装什么。

GDB

GDB下载和安装教程 (biancheng.net)

obsidian

Anaconda

【Jupyter notebook 如何进入D盘】
当你打开Jupyter notebook的时候,基本都是在默认盘C盘打开的,可是系统盘的剩余空间太小了,网上其他的那些更改默认设置的方法对我又无效,或者我太懒了并不想改,那如何直接进入其他盘呢?下面提供我的方法:
1.第一步,打开Anaconda Prompt,输入D:(如果你想去其他盘就输入其他盘名,如E盘的话就输入E:)
2.此时输入Jupyter notebook就可以啦
参考:Anaconda Jupyter notebook 如何进入D盘 个人解决办法_是琼琼球吗的博客-CSDN博客

【anaconda清理】 见上文电脑-清理c盘

【jupyter notebook设置一个执行单元多个输出】
在前面执行这两条命令

1
2
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"

网页

css

css 文件注释 在 CSS 中注释以/*开头(起始符),以*/结尾(结束符),/**/是成对出现的

yml

用于注释YAML块的快捷键组合是 Ctrl + Q

pug

网页模板pug基本语法 - 掘金 (juejin.cn)
//- html中不包含此行 // html中会包含此行

js

注释: // 快捷键: ctrl + /
《br》换行 《替换为”<”