August 20, 2020

Misc Linux Tips: anaconda, vim, screen

Anaconda

Channels
  • Show all channels, $ conda config --show channels
  • Adding a channel, $ conda config --add channels https://channel_url
    $ conda config --set show_channel_urls yes
  • Remove channel, $ conda config --remove channels https://channel_url
Anaconda Config commands:
https://docs.conda.io/projects/conda/en/latest/commands/config.html

 

Vim 

copy & Paste

https://linuxize.com/post/how-to-copy-cut-paste-in-vim/

Y=Yank

yy: copy current line

3yy: copy 3 lines (or any number)

y$: copy til to the end of the line

y^: copy from the start of the line

yw: copy until the end of the word, e.g. 12345[6]789 --> 6789 (6 is where cursor is)

yiw: copy the current word

dd: delete the line

3dd: delete 3 lines

d$: delete until the end of the line

p: paste

<visual mode>

v: visual mode

V: visual line mode

Ctrl+v: visual block mode

y: copy

d: delete

 

Screen

http://www.softpanorama.org/Utilities/Screen/screen_logging.shtml

screen -r   # reattach
screen -ls  # list sessions


- Logging: Ctrl-a, H
- screen output: Ctrl-a, h


High CPU usage by tracker

$ tracker reset --hard                # reset index

$ /usr/libexec/tracker-miner-fs -v 3  # examine issues

 

Typora

wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
# add Typora's repository
sudo add-apt-repository 'deb https://typora.io/linux ./'
sudo apt-get update

# install typora
sudo apt-get install typora


[this post will be updated with more entries]

No comments: